This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR testsuite/35621: gcc.target/i386/ssse3-*.c violates C/C++ aliasing rules


Hi,

Those AVX tests just include ssse3-*.c. They also need -fno-strict-aliasing.
I am checking in this patch into trunk and 4.4 branch.

Thanks.


H.J.
---
2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>

	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.
Index: gcc.target/i386/avx-vpsignd-1.c
===================================================================
--- gcc.target/i386/avx-vpsignd-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpsignd-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpabsd-1.c
===================================================================
--- gcc.target/i386/avx-vpabsd-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpabsd-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphsubd-1.c
===================================================================
--- gcc.target/i386/avx-vphsubd-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphsubd-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphaddd-1.c
===================================================================
--- gcc.target/i386/avx-vphaddd-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphaddd-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpsignw-1.c
===================================================================
--- gcc.target/i386/avx-vpsignw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpsignw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphaddsw-1.c
===================================================================
--- gcc.target/i386/avx-vphaddsw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphaddsw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpmaddubsw-1.c
===================================================================
--- gcc.target/i386/avx-vpmaddubsw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpmaddubsw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpabsw-1.c
===================================================================
--- gcc.target/i386/avx-vpabsw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpabsw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphsubw-1.c
===================================================================
--- gcc.target/i386/avx-vphsubw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphsubw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphaddw-1.c
===================================================================
--- gcc.target/i386/avx-vphaddw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphaddw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vphsubsw-1.c
===================================================================
--- gcc.target/i386/avx-vphsubsw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vphsubsw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpalignr-1.c
===================================================================
--- gcc.target/i386/avx-vpalignr-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpalignr-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpmulhrsw-1.c
===================================================================
--- gcc.target/i386/avx-vpmulhrsw-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpmulhrsw-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpsignb-1.c
===================================================================
--- gcc.target/i386/avx-vpsignb-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpsignb-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpabsb-1.c
===================================================================
--- gcc.target/i386/avx-vpabsb-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpabsb-1.c	(working copy)
@@ -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
Index: gcc.target/i386/avx-vpshufb-1.c
===================================================================
--- gcc.target/i386/avx-vpshufb-1.c	(revision 145853)
+++ gcc.target/i386/avx-vpshufb-1.c	(working copy)
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]