Properly specify alternate AM in the ia32_IJmp emit clause.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 22 Oct 2012 19:14:42 +0000 (21:14 +0200)
committerChristoph 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

index d0acad1..1340f04 100644 (file)
@@ -1029,7 +1029,7 @@ IJmp => {
        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",