[Bug target/57341] [4.8/4.9 Regression] wrong code on x86_64-linux at -O3 in 32-bit mode
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 22 14:38:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57341
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testing the patch together with the following
Index: gcc/testsuite/gcc.dg/torture/pr57341.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr57341.c (revision 0)
+++ gcc/testsuite/gcc.dg/torture/pr57341.c (working copy)
@@ -0,0 +1,22 @@
+/* { dg-do run } */
+/* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
+
+int a, d;
+int *b = &a, **c;
+int
+main ()
+{
+ int e;
+ {
+ int f[4];
+ for (d = 0; d < 4; d++)
+ f[d] = 1;
+ e = f[1];
+ }
+ int *g[28] = { };
+ *b = e;
+ c = &g[0];
+ if (a != 1)
+ __builtin_abort ();
+ return 0;
+}
More information about the Gcc-bugs
mailing list