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
01e6da8d
Commit
01e6da8d
authored
Nov 11, 2012
by
Christoph Mallon
Browse files
Implement binary emitters for ia32 bsf and bsr.
parent
59830201
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
01e6da8d
...
...
@@ -2496,6 +2496,16 @@ static void bemit_setcc(const ir_node *node)
}
}
static
void
bemit_bsf
(
ir_node
const
*
const
node
)
{
bemit_0f_unop_reg
(
node
,
0xBC
,
n_ia32_Bsf_operand
);
}
static
void
bemit_bsr
(
ir_node
const
*
const
node
)
{
bemit_0f_unop_reg
(
node
,
0xBD
,
n_ia32_Bsr_operand
);
}
static
void
bemit_cmovcc
(
const
ir_node
*
node
)
{
const
ia32_attr_t
*
attr
=
get_ia32_attr_const
(
node
);
...
...
@@ -3572,6 +3582,8 @@ static void ia32_register_binary_emitters(void)
register_emitter
(
op_ia32_AndMem
,
bemit_andmem
);
register_emitter
(
op_ia32_AndMem8Bit
,
bemit_andmem8bit
);
register_emitter
(
op_ia32_Breakpoint
,
bemit_int3
);
register_emitter
(
op_ia32_Bsf
,
bemit_bsf
);
register_emitter
(
op_ia32_Bsr
,
bemit_bsr
);
register_emitter
(
op_ia32_CMovcc
,
bemit_cmovcc
);
register_emitter
(
op_ia32_Call
,
bemit_call
);
register_emitter
(
op_ia32_Cltd
,
bemit_cltd
);
...
...
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