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
8fbc0db1
Commit
8fbc0db1
authored
Sep 22, 2009
by
Christoph Mallon
Browse files
Handle 8Bit locations for RolMem, RorMem, SarMem, ShlMem and ShrMem.
[r26612]
parent
f1a0779b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
8fbc0db1
...
...
@@ -2814,21 +2814,22 @@ static void bemit_##op(const ir_node *node) \
\
static void bemit_##op##mem(const ir_node *node) \
{ \
if (get_mode_size_bits(get_ia32_ls_mode(node)) == 16) \
unsigned size = get_mode_size_bits(get_ia32_ls_mode(node)); \
if (size == 16) \
bemit8(0x66); \
ir_node *count = get_irn_n(node, 1); \
if (is_ia32_Immediate(count)) { \
int offset = get_ia32_immediate_attr_const(count)->offset; \
if (offset == 1) { \
bemit8(0xD1); \
bemit8(
size == 1 ? 0xD0 :
0xD1); \
bemit_mod_am(ext, node); \
} else { \
bemit8(0xC1); \
bemit8(
size == 1 ? 0xC0 :
0xC1); \
bemit_mod_am(ext, node); \
bemit8(offset); \
} \
} else { \
bemit8(0xD3); \
bemit8(
size == 1 ? 0xD2 :
0xD3); \
bemit_mod_am(ext, node); \
} \
}
...
...
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