Comments
Patch
===================================================================
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "setnp" } } */
int foo(unsigned int x)
===================================================================
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -msse2" } */
+/* { dg-options "-O2 -march=k8 -msse2" } */
#define vector __attribute__((vector_size(16)))
===================================================================
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -msse2" } */
+/* { dg-options "-O2 -march=k8 -msse2" } */
#define vector __attribute__((vector_size(16)))
===================================================================
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -march=k8" } */
/* { dg-final { scan-assembler "setnp" } } */
int foo(unsigned long long int x)
Hello! Some assembler scan tests are valid only for older ISAs; newer ISAs generate different instruction sequences. See i.e. [1]. 2011-02-10 Uros Bizjak <ubizjak@gmail.com> * gcc.target/i386/parity-1.c: Use -march=k8. * gcc.target/i386/parity-2.c: Ditto. * gcc.target/i386/vecinit-1.c: Ditto. * gcc.target/i386/vecinit-2.c: Ditto. Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN. [1] http://gcc.gnu.org/ml/gcc-testresults/2011-02/msg01097.html Uros.