projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2b589bc
)
Properly specify alternate AM in the ia32_IJmp emit clause.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 22 Oct 2012 19:14:42 +0000
(21:14 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 22 Oct 2012 19:23:11 +0000
(21:23 +0200)
When hard-coding the *, invalid assembler gets emitted if an immediate ends up as ia32_IJmp operand.
ir/be/ia32/ia32_spec.pl
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_spec.pl
b/ir/be/ia32/ia32_spec.pl
index
d0acad1
..
1340f04
100644
(file)
--- a/
ir/be/ia32/ia32_spec.pl
+++ b/
ir/be/ia32/ia32_spec.pl
@@
-1029,7
+1029,7
@@
IJmp => {
reg_req => { in => [ "gp", "gp", "none", "gp" ] },
ins => [ "base", "index", "mem", "target" ],
am => "source,unary",
reg_req => { in => [ "gp", "gp", "none", "gp" ] },
ins => [ "base", "index", "mem", "target" ],
am => "source,unary",
- emit => 'jmp
*%
AS3',
+ emit => 'jmp
%*
AS3',
latency => 1,
units => [ "BRANCH" ],
mode => "mode_X",
latency => 1,
units => [ "BRANCH" ],
mode => "mode_X",