Fix inconsistency between reg_req and ins of Push: reg_req expected the stack in...
[libfirm] / ir / be / ia32 / ia32_spec.pl
index 4b8d1d6..84c2425 100644 (file)
@@ -1365,9 +1365,9 @@ Lea => {
 
 Push => {
        state     => "exc_pinned",
-       reg_req   => { in => [ "gp", "gp", "none", "esp", "gp" ], out => [ "esp", "none" ] },
+       reg_req   => { in => [ "gp", "gp", "none", "gp", "esp" ], out => [ "esp", "none" ] },
        ins       => [ "base", "index", "mem", "val", "stack" ],
-       emit      => '. push%M %unop4',
+       emit      => '. push%M %unop3',
        outs      => [ "stack:I|S", "M" ],
        am        => "source,binary",
        latency   => 2,