From 90caee1a0420fc05253c2c995b35b411dd5787f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 21 Jul 2006 14:54:40 +0000 Subject: [PATCH] added constraints to CopyB --- ir/be/ia32/ia32_spec.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ir/be/ia32/ia32_spec.pl b/ir/be/ia32/ia32_spec.pl index 0cd2fe0c6..a728fa582 100644 --- a/ir/be/ia32/ia32_spec.pl +++ b/ir/be/ia32/ia32_spec.pl @@ -900,7 +900,8 @@ else { "op_flags" => "F|H", "state" => "pinned", "comment" => "implements a memcopy: CopyB(dst, src, size, mem) == memcpy(dst, src, size)", - "reg_req" => { "in" => [ "edi", "esi", "ecx", "none" ], "out" => [ "none" ] }, + "reg_req" => { "in" => [ "gp", "gp", "gp", "none" ], "out" => [ "edi in_r1", "esi in_r2", "ecx in_r3", "none" ] }, + "outs" => [ "DST", "SRC", "CNT", "M" ], }, "CopyB_i" => { @@ -908,7 +909,8 @@ else { "state" => "pinned", "comment" => "implements a memcopy: CopyB(dst, src, mem) == memcpy(dst, src, attr(size))", "cmp_attr" => " return ia32_compare_immop_attr(attr_a, attr_b);\n", - "reg_req" => { "in" => [ "edi", "esi", "none" ], "out" => [ "none" ] }, + "reg_req" => { "in" => [ "gp", "gp", "none" ], "out" => [ "edi in_r1", "esi in_r2", "none" ] }, + "outs" => [ "DST", "SRC", "M" ], }, # Conversions -- 2.20.1