fix two x86_64 splitter conditionals

Richard Henderson rth@redhat.com
Sat Feb 1 20:19:00 GMT 2003


Found via inspection, while looking for something else.


r~


        * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
        to the conditional.
        (ashlsi3_1_zext splitter): Likewise.

Index: config/i386/i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.419
diff -c -p -d -u -r1.419 i386.md
--- config/i386/i386.md	1 Feb 2003 18:59:56 -0000	1.419
+++ config/i386/i386.md	1 Feb 2003 20:16:06 -0000
@@ -5677,7 +5677,7 @@
 	  (plus:SI (match_operand:SI 1 "register_operand" "")
 		   (match_operand:SI 2 "nonmemory_operand" ""))))
    (clobber (reg:CC 17))]
-  "reload_completed
+  "TARGET_64BIT && reload_completed
    && true_regnum (operands[0]) != true_regnum (operands[1])"
   [(set (match_dup 0)
 	(zero_extend:DI (subreg:SI (plus:DI (match_dup 1) (match_dup 2)) 0)))]
@@ -11104,9 +11104,11 @@
 	(zero_extend:DI (ashift (match_operand 1 "register_operand" "")
 				(match_operand:QI 2 "const_int_operand" ""))))
    (clobber (reg:CC 17))]
-  "reload_completed
+  "TARGET_64BIT && reload_completed
    && true_regnum (operands[0]) != true_regnum (operands[1])"
-  [(set (match_dup 0) (zero_extend:DI (subreg:SI (mult:SI (match_dup 1) (match_dup 2)) 0)))]
+  [(set (match_dup 0) (zero_extend:DI
+			(subreg:SI (mult:SI (match_dup 1)
+					    (match_dup 2)) 0)))]
 {
   operands[1] = gen_lowpart (Pmode, operands[1]);
   operands[2] = gen_int_mode (1 << INTVAL (operands[2]), Pmode);



More information about the Gcc-patches mailing list