From 6f5e548d48567ee01f0d0cc33d5bd0addda48ca1 Mon Sep 17 00:00:00 2001 From: Robin Redeker Date: Mon, 10 May 2010 15:51:06 +0000 Subject: [PATCH] Emit bad instead of broken code for Add on amd64. [r27525] --- ir/be/amd64/amd64_spec.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", }, -- 2.20.1