From patchwork Thu Feb 10 19:05:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [i386] : Add -march=k8 to some testcases Date: Thu, 10 Feb 2011 09:05:52 -0000 From: Uros Bizjak X-Patchwork-Id: 82653 Message-Id: To: gcc-patches@gcc.gnu.org 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 * 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. Index: gcc.target/i386/parity-1.c =================================================================== --- gcc.target/i386/parity-1.c (revision 170004) +++ gcc.target/i386/parity-1.c (working copy) @@ -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) Index: gcc.target/i386/vecinit-2.c =================================================================== --- gcc.target/i386/vecinit-2.c (revision 170004) +++ gcc.target/i386/vecinit-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2" } */ #define vector __attribute__((vector_size(16))) Index: gcc.target/i386/vecinit-1.c =================================================================== --- gcc.target/i386/vecinit-1.c (revision 170004) +++ gcc.target/i386/vecinit-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2" } */ #define vector __attribute__((vector_size(16))) Index: gcc.target/i386/parity-2.c =================================================================== --- gcc.target/i386/parity-2.c (revision 170004) +++ gcc.target/i386/parity-2.c (working copy) @@ -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)