re PR tree-optimization/17529 (ICE in get_indirect_ref_operands)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 17 Oct 2004 17:24:59 +0000 (17:24 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 17 Oct 2004 17:24:59 +0000 (10:24 -0700)
2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/17529
        * gcc.c-torture/compile/pr17529.c: New test.

From-SVN: r89175

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr17529.c [new file with mode: 0644]

index 38f19503529e8803420535101b1b822caea0a08b..66a07d7a6e4195f956247543650899a1350064f1 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c/17529
+       * gcc.c-torture/compile/pr17529.c: New test.
+
 2004-10-17  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
 
        PR c++/17743
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr17529.c b/gcc/testsuite/gcc.c-torture/compile/pr17529.c
new file mode 100644 (file)
index 0000000..fc6a0ad
--- /dev/null
@@ -0,0 +1,13 @@
+static inline void 
+bar (const int * const x) 
+{ 
+  __asm__ __volatile__ ("paddd" " %0, %%" "mm0"::"m" (*x)); 
+} 
+static const int y[]; 
+void 
+foo (void) 
+{ 
+  bar (y); 
+}