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
4165b4e4
Commit
4165b4e4
authored
Sep 27, 2006
by
Matthias Braun
Browse files
don't emit +0 offsets
parent
7730ec98
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_emitter.c
View file @
4165b4e4
...
...
@@ -653,17 +653,16 @@ const char *ia32_emit_am(const ir_node *n, ia32_emit_env_t *env) {
}
if
(
am_flav
&
ia32_O
)
{
s
=
get_ia32_am_offs
(
n
);
int
off
s
=
get_ia32_am_offs
_int
(
n
);
if
(
s
)
{
if
(
offs
!=
0
)
{
/* omit explicit + if there was no base or index */
if
(
!
had_output
)
{
obstack_printf
(
obst
,
"[
"
);
if
(
s
[
0
]
==
'+'
)
s
++
;
obstack_printf
(
obst
,
"[
%d"
,
offs
);
}
else
{
obstack_printf
(
obst
,
"%+d"
,
offs
)
;
}
obstack_printf
(
obst
,
s
);
had_output
=
1
;
}
}
...
...
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