From: Robin Redeker Date: Mon, 10 May 2010 15:51:06 +0000 (+0000) Subject: Emit bad instead of broken code for Add on amd64. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=6f5e548d48567ee01f0d0cc33d5bd0addda48ca1;p=libfirm Emit bad instead of broken code for Add on amd64. [r27525] --- diff --git a/ir/be/amd64/amd64_spec.pl b/ir/be/amd64/amd64_spec.pl index 2e300e958..5862e9629 100644 --- a/ir/be/amd64/amd64_spec.pl +++ b/ir/be/amd64/amd64_spec.pl @@ -185,9 +185,10 @@ Add => { irn_flags => "R", state => "exc_pinned", reg_req => { in => [ "gp", "gp" ], - out => [ "in_r1" ] }, + out => [ "gp" ] }, in => [ "left", "right" ], - emit => ". add %S1, %D1", + emit => ". mov %S2, %D1\n" + . ". add %S1, %D1\n", outs => [ "res" ], mode => "mode_Iu", },