re PR target/33347 (gcc.c-torture/compile/20000804-1.c ICEs at -O3 -funroll-loops)
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Fri, 28 Sep 2007 22:41:20 +0000 (22:41 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 28 Sep 2007 22:41:20 +0000 (15:41 -0700)
2007-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR target/33347
        * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
        argument to gen_selb.

From-SVN: r128874

gcc/ChangeLog
gcc/config/spu/spu.c

index e6277b792b4633d69f3877528062b4771f8be4eb..70ddb711051ef4e0ffb0052c732bd83211a857d3 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       PR target/33347
+       * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
+       argument to gen_selb.
+
 2007-09-28  Chao-ying Fu  <fu@mips.com>
 
        * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
index 2dd78a099ac95357bd630ec17e95400b2ae05b1f..bf2e9e854177ec957c9ae1107bfa8661e0162d84 100644 (file)
@@ -637,7 +637,7 @@ spu_expand_insv (rtx ops[])
        }
     }
   else
-    emit_insn (gen_selb (dst, dst, shift_reg, mask));
+    emit_insn (gen_selb (dst, copy_rtx (dst), shift_reg, mask));
 }