From a128980137ceb27de264fd4ec4b9f20892b62a66 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 20 Mar 2008 14:40:10 +0000 Subject: [PATCH] re PR testsuite/35621 (gcc.target/i386/ssse3-*.c violates C/C++ aliasing rules) 2008-03-20 H.J. Lu PR testsuite/35621 * gcc.target/i386/ssse3-pabsb.c: Add -fno-strict-aliasing. * gcc.target/i386/ssse3-pabsd.c: Likewise. * gcc.target/i386/ssse3-pabsw.c: Likewise. * gcc.target/i386/ssse3-palignr.c: Likewise. * gcc.target/i386/ssse3-phaddd.c: Likewise. * gcc.target/i386/ssse3-phaddsw.c: Likewise. * gcc.target/i386/ssse3-phaddw.c: Likewise. * gcc.target/i386/ssse3-phsubd.c: Likewise. * gcc.target/i386/ssse3-phsubsw.c: Likewise. * gcc.target/i386/ssse3-phsubw.c: Likewise. * gcc.target/i386/ssse3-pmaddubsw.c: Likewise. * gcc.target/i386/ssse3-pmulhrsw.c: Likewise. * gcc.target/i386/ssse3-pshufb.c: Likewise. * gcc.target/i386/ssse3-psignb.c: Likewise. * gcc.target/i386/ssse3-psignd.c: Likewise. * gcc.target/i386/ssse3-psignw.c: Likewise. From-SVN: r133380 --- gcc/testsuite/ChangeLog | 20 +++++++++++++++++++ gcc/testsuite/gcc.target/i386/ssse3-pabsb.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-pabsd.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-pabsw.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-palignr.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phaddd.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phaddw.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phsubd.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-phsubw.c | 2 +- .../gcc.target/i386/ssse3-pmaddubsw.c | 2 +- .../gcc.target/i386/ssse3-pmulhrsw.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-pshufb.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-psignb.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-psignd.c | 2 +- gcc/testsuite/gcc.target/i386/ssse3-psignw.c | 2 +- 17 files changed, 36 insertions(+), 16 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c140d1e5e29..7cf08190563 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,23 @@ +2008-03-20 H.J. Lu + + PR testsuite/35621 + * gcc.target/i386/ssse3-pabsb.c: Add -fno-strict-aliasing. + * gcc.target/i386/ssse3-pabsd.c: Likewise. + * gcc.target/i386/ssse3-pabsw.c: Likewise. + * gcc.target/i386/ssse3-palignr.c: Likewise. + * gcc.target/i386/ssse3-phaddd.c: Likewise. + * gcc.target/i386/ssse3-phaddsw.c: Likewise. + * gcc.target/i386/ssse3-phaddw.c: Likewise. + * gcc.target/i386/ssse3-phsubd.c: Likewise. + * gcc.target/i386/ssse3-phsubsw.c: Likewise. + * gcc.target/i386/ssse3-phsubw.c: Likewise. + * gcc.target/i386/ssse3-pmaddubsw.c: Likewise. + * gcc.target/i386/ssse3-pmulhrsw.c: Likewise. + * gcc.target/i386/ssse3-pshufb.c: Likewise. + * gcc.target/i386/ssse3-psignb.c: Likewise. + * gcc.target/i386/ssse3-psignd.c: Likewise. + * gcc.target/i386/ssse3-psignw.c: Likewise. + 2008-03-20 Andreas Schwab PR testsuite/35647 diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c index 83e738feedd..1a2445d4f29 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsb.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c index e677cc50fa8..22eb512ed35 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsd.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c index 431bd30b01b..aba4f050315 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pabsw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-palignr.c b/gcc/testsuite/gcc.target/i386/ssse3-palignr.c index 440de8501b4..386cddb2ee6 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-palignr.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-palignr.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c index b9c967d52a7..675d233360c 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddd.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c index b8ac8a6ed99..563dcdb6af1 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddsw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c b/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c index 1ce1915dbf1..008a0db2d38 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phaddw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c index c607c7c88cb..19a1dc1da07 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubd.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c index 926ae064f8c..506844f7b10 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubsw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c b/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c index eb26fa1ed97..7fd67faa20e 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-phsubw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c index 8803f646caf..3a2a27c0f3a 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pmaddubsw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c b/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c index 8186e60e1ff..193c4fc9aca 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pmulhrsw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c b/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c index af6055fce06..0a24d9e87f9 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-pshufb.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignb.c b/gcc/testsuite/gcc.target/i386/ssse3-psignb.c index 8f44cd86f4c..ba7617bf869 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignb.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignb.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignd.c b/gcc/testsuite/gcc.target/i386/ssse3-psignd.c index a1dd3e74ae7..8b1ab4d880a 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignd.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignd.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" diff --git a/gcc/testsuite/gcc.target/i386/ssse3-psignw.c b/gcc/testsuite/gcc.target/i386/ssse3-psignw.c index 3770537fa88..04e9ed27cfa 100644 --- a/gcc/testsuite/gcc.target/i386/ssse3-psignw.c +++ b/gcc/testsuite/gcc.target/i386/ssse3-psignw.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target ssse3 } */ -/* { dg-options "-O2 -mssse3" } */ +/* { dg-options "-O2 -fno-strict-aliasing -mssse3" } */ #include "ssse3-check.h" #include "ssse3-vals.h" -- 2.30.2