Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c1bd563c
Commit
c1bd563c
authored
Jun 02, 2007
by
Matthias Braun
Browse files
fix immediate emitting
[r14277]
parent
adf4f663
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
c1bd563c
...
...
@@ -1328,6 +1328,8 @@ void emit_ia32_Immediate(ia32_emit_env_t *env, const ir_node *node)
if
(
attr
->
cnst_val
.
tv
!=
NULL
)
{
if
(
attr
->
am_sc
!=
NULL
)
be_emit_char
(
env
,
'+'
);
else
be_emit_char
(
env
,
'$'
);
be_emit_tarval
(
env
,
attr
->
cnst_val
.
tv
);
}
}
...
...
ir/be/test/asm_test.c
View file @
c1bd563c
...
...
@@ -27,7 +27,7 @@ static inline int mov(int val)
{
int
res
;
__asm__
(
"movl %
0
, %
1
"
:
"=r"
(
res
)
:
"ri"
(
val
));
__asm__
(
"movl %
1
, %
0
"
:
"=r"
(
res
)
:
"ri"
(
val
));
return
res
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment