From 8b7a6bb2faf84c3d620222c7aff68a87f9f82104 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 10 Apr 2009 00:30:50 +0000 Subject: re PR testsuite/35621 (gcc.target/i386/ssse3-*.c violates C/C++ aliasing rules) 2009-04-09 H.J. Lu PR testsuite/35621 * gcc.target/i386/avx-vpabsb-1.c: Add -fno-strict-aliasing. * gcc.target/i386/avx-vpabsb-1.c: Likewise. * gcc.target/i386/avx-vpabsd-1.c: Likewise. * gcc.target/i386/avx-vpabsw-1.c: Likewise. * gcc.target/i386/avx-vpalignr-1.c: Likewise. * gcc.target/i386/avx-vphaddd-1.c: Likewise. * gcc.target/i386/avx-vphaddsw-1.c: Likewise. * gcc.target/i386/avx-vphaddw-1.c: Likewise. * gcc.target/i386/avx-vphsubd-1.c: Likewise. * gcc.target/i386/avx-vphsubsw-1.c: Likewise. * gcc.target/i386/avx-vphsubw-1.c: Likewise. * gcc.target/i386/avx-vpmaddubsw-1.c: Likewise. * gcc.target/i386/avx-vpmulhrsw-1.c: Likewise. * gcc.target/i386/avx-vpshufb-1.c: Likewise. * gcc.target/i386/avx-vpsignb-1.c: Likewise. * gcc.target/i386/avx-vpsignd-1.c: Likewise. * gcc.target/i386/avx-vpsignw-1.c: Likewise. From-SVN: r145871 --- gcc/testsuite/ChangeLog | 21 +++++++++++++++++++++ gcc/testsuite/gcc.target/i386/avx-vpabsb-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpabsd-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpabsw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpalignr-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphaddd-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphaddsw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphaddw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphsubd-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphsubsw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vphsubw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpmaddubsw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpmulhrsw-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpshufb-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpsignb-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpsignd-1.c | 2 +- gcc/testsuite/gcc.target/i386/avx-vpsignw-1.c | 2 +- 17 files changed, 37 insertions(+), 16 deletions(-) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c7cab6..fdee1fa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,26 @@ 2009-04-09 H.J. Lu + PR testsuite/35621 + * gcc.target/i386/avx-vpabsb-1.c: Add -fno-strict-aliasing. + * gcc.target/i386/avx-vpabsb-1.c: Likewise. + * gcc.target/i386/avx-vpabsd-1.c: Likewise. + * gcc.target/i386/avx-vpabsw-1.c: Likewise. + * gcc.target/i386/avx-vpalignr-1.c: Likewise. + * gcc.target/i386/avx-vphaddd-1.c: Likewise. + * gcc.target/i386/avx-vphaddsw-1.c: Likewise. + * gcc.target/i386/avx-vphaddw-1.c: Likewise. + * gcc.target/i386/avx-vphsubd-1.c: Likewise. + * gcc.target/i386/avx-vphsubsw-1.c: Likewise. + * gcc.target/i386/avx-vphsubw-1.c: Likewise. + * gcc.target/i386/avx-vpmaddubsw-1.c: Likewise. + * gcc.target/i386/avx-vpmulhrsw-1.c: Likewise. + * gcc.target/i386/avx-vpshufb-1.c: Likewise. + * gcc.target/i386/avx-vpsignb-1.c: Likewise. + * gcc.target/i386/avx-vpsignd-1.c: Likewise. + * gcc.target/i386/avx-vpsignw-1.c: Likewise. + +2009-04-09 H.J. Lu + PR target/39678 * g++.dg/torture/pr39678.C: New. * gcc.dg/compat/struct-complex-2.h: Likewise. diff --git a/gcc/testsuite/gcc.target/i386/avx-vpabsb-1.c b/gcc/testsuite/gcc.target/i386/avx-vpabsb-1.c index 80081ff..bd5b1fb 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpabsb-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpabsb-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpabsd-1.c b/gcc/testsuite/gcc.target/i386/avx-vpabsd-1.c index 3b165f1..3ea84d8 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpabsd-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpabsd-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpabsw-1.c b/gcc/testsuite/gcc.target/i386/avx-vpabsw-1.c index b737068..6de79a5 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpabsw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpabsw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpalignr-1.c b/gcc/testsuite/gcc.target/i386/avx-vpalignr-1.c index 13c84c8..1a60b46 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpalignr-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpalignr-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphaddd-1.c b/gcc/testsuite/gcc.target/i386/avx-vphaddd-1.c index 57af9a6..d0aee21 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphaddd-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphaddd-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphaddsw-1.c b/gcc/testsuite/gcc.target/i386/avx-vphaddsw-1.c index 0fce115..b58978a 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphaddsw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphaddsw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphaddw-1.c b/gcc/testsuite/gcc.target/i386/avx-vphaddw-1.c index 08faf3c..cdf17f6 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphaddw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphaddw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphsubd-1.c b/gcc/testsuite/gcc.target/i386/avx-vphsubd-1.c index 93cc726..b1be419 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphsubd-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphsubd-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphsubsw-1.c b/gcc/testsuite/gcc.target/i386/avx-vphsubsw-1.c index cd0e687..477523e 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphsubsw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphsubsw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vphsubw-1.c b/gcc/testsuite/gcc.target/i386/avx-vphsubw-1.c index f9050da..55893a6 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vphsubw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vphsubw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpmaddubsw-1.c b/gcc/testsuite/gcc.target/i386/avx-vpmaddubsw-1.c index c80ad6f..adc4763 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpmaddubsw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpmaddubsw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpmulhrsw-1.c b/gcc/testsuite/gcc.target/i386/avx-vpmulhrsw-1.c index 6451bf1..121252e 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpmulhrsw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpmulhrsw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpshufb-1.c b/gcc/testsuite/gcc.target/i386/avx-vpshufb-1.c index a868b19..5ab106c 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpshufb-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpshufb-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mavx" } */ +/* { dg-options "-O2 -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpsignb-1.c b/gcc/testsuite/gcc.target/i386/avx-vpsignb-1.c index c88acf2..9677c68 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpsignb-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpsignb-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpsignd-1.c b/gcc/testsuite/gcc.target/i386/avx-vpsignd-1.c index ca5bb39..84b16b7 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpsignd-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpsignd-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test diff --git a/gcc/testsuite/gcc.target/i386/avx-vpsignw-1.c b/gcc/testsuite/gcc.target/i386/avx-vpsignw-1.c index 392ca03..daf47e6 100644 --- a/gcc/testsuite/gcc.target/i386/avx-vpsignw-1.c +++ b/gcc/testsuite/gcc.target/i386/avx-vpsignw-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target avx } */ -/* { dg-options "-O2 -mfpmath=sse -mavx" } */ +/* { dg-options "-O2 -mfpmath=sse -mavx -fno-strict-aliasing" } */ #define CHECK_H "avx-check.h" #define TEST avx_test -- cgit v1.1