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
6ea2b35b
Commit
6ea2b35b
authored
Jan 28, 2010
by
Christoph Mallon
Browse files
Reduce code duplication by jumping to the appropriate case.
[r27008]
parent
a222aee7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
6ea2b35b
...
...
@@ -704,20 +704,20 @@ end_of_mods:
case
'A'
:
{
switch
(
*
fmt
++
)
{
emit_AM:
case
'M'
:
if
(
mod
&
EMIT_ALTERNATE_AM
)
be_emit_char
(
'*'
);
ia32_emit_am
(
node
);
break
;
case
'R'
:
{
const
arch_register_t
*
reg
=
va_arg
(
ap
,
const
arch_register_t
*
);
if
(
mod
&
EMIT_ALTERNATE_AM
)
be_emit_char
(
'*'
);
if
(
get_ia32_op_type
(
node
)
==
ia32_AddrModeS
)
{
ia32_emit_am
(
node
)
;
goto
emit_AM
;
}
else
{
const
arch_register_t
*
reg
=
va_arg
(
ap
,
const
arch_register_t
*
);
if
(
mod
&
EMIT_ALTERNATE_AM
)
be_emit_char
(
'*'
);
emit_register
(
reg
,
NULL
);
}
break
;
...
...
@@ -725,10 +725,8 @@ end_of_mods:
case
'S'
:
if
(
get_ia32_op_type
(
node
)
==
ia32_AddrModeS
)
{
if
(
mod
&
EMIT_ALTERNATE_AM
)
be_emit_char
(
'*'
);
ia32_emit_am
(
node
);
++
fmt
;
goto
emit_AM
;
}
else
{
assert
(
get_ia32_op_type
(
node
)
==
ia32_Normal
);
goto
emit_S
;
...
...
Write
Preview
Markdown
is supported
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