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
fd55fe0f
Commit
fd55fe0f
authored
Nov 11, 2012
by
Christoph Mallon
Browse files
Implement binary emitter for ia32 popcnt.
parent
2b46e60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
fd55fe0f
...
...
@@ -2986,6 +2986,12 @@ static void bemit_conv_i2i(const ir_node *node)
bemit_0f_unop_reg
(
node
,
opcode
,
n_ia32_Conv_I2I_val
);
}
static
void
bemit_popcnt
(
ir_node
const
*
const
node
)
{
bemit8
(
0xF3
);
bemit_0f_unop_reg
(
node
,
0xB8
,
n_ia32_Popcnt_operand
);
}
/**
* Emit a Push.
*/
...
...
@@ -3648,6 +3654,7 @@ static void ia32_register_binary_emitters(void)
register_emitter
(
op_ia32_Pop
,
bemit_pop
);
register_emitter
(
op_ia32_PopEbp
,
bemit_pop
);
register_emitter
(
op_ia32_PopMem
,
bemit_popmem
);
register_emitter
(
op_ia32_Popcnt
,
bemit_popcnt
);
register_emitter
(
op_ia32_Push
,
bemit_push
);
register_emitter
(
op_ia32_RepPrefix
,
bemit_rep
);
register_emitter
(
op_ia32_Rol
,
bemit_rol
);
...
...
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