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
8a9280a5
Commit
8a9280a5
authored
May 30, 2007
by
Michael Beck
Browse files
preliminary emitter for ASM nodes
[r14205]
parent
a1317831
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
8a9280a5
...
...
@@ -1311,6 +1311,20 @@ void emit_Jmp(ia32_emit_env_t *env, const ir_node *node) {
be_emit_finish_line_gas
(
env
,
node
);
}
/**
* Emits code for an ASM pseudo op.
*/
static
void
emit_ASM
(
ia32_emit_env_t
*
env
,
const
ir_node
*
node
)
{
/* for now, really simple */
const
char
*
s
=
get_ASM_text
(
node
);
if
(
s
[
0
]
!=
'\t'
)
be_emit_cstring
(
env
,
"
\t
"
);
be_emit_string
(
env
,
s
);
be_emit_finish_line_gas
(
env
,
node
);
}
/**********************************
* _____ ____
* / ____| | _ \
...
...
@@ -1818,6 +1832,7 @@ void ia32_register_emitters(void) {
/* firm emitter */
EMIT
(
Jmp
);
EMIT
(
ASM
);
IGN
(
Proj
);
IGN
(
Phi
);
IGN
(
Start
);
...
...
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