Patchwork [testsuite] : Improve some i386 tests for AVX targets.

login
register
mail settings
Submitter Uros Bizjak
Date Oct. 24, 2011, 6:05 p.m.
Message ID <CAFULd4Z=jg7yJVFqNUrEnP0otamtESPVwKeSBjojcjx8POxm2Q@mail.gmail.com>
Download mbox | patch
Permalink /patch/121389/
State New
Headers show

Comments

Uros Bizjak - Oct. 24, 2011, 6:05 p.m.
Hello!

2011-10-24  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/sse-5.c (dg-options): Add -mno-sse.
	Remove -march=i386.
	(dg-skip-if): Remove.
	* gcc.target/i386/funcspec-1.c: Ditto.
	* gcc.target/i386/funcspec-3.c (dg-options): Add -mno-sse3.

Tested on x86_64-pc-linux-gnu {,-m32} AVX target.  Committed to mainline SVN.

Uros.

Patch

Index: gcc.target/i386/funcspec-1.c
===================================================================
--- gcc.target/i386/funcspec-1.c	(revision 180391)
+++ gcc.target/i386/funcspec-1.c	(working copy)
@@ -3,10 +3,7 @@ 
    for a function that doesn't use attribute((option)).  */
 /* { dg-do compile } */
 /* { dg-require-effective-target ia32 } */
-/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
-/* { dg-options "-O3 -ftree-vectorize -march=i386" } */
-/* { dg-final { scan-assembler "addps\[ \t\]" } } */
-/* { dg-final { scan-assembler "fsubs\[ \t\]" } } */
+/* { dg-options "-O3 -ftree-vectorize -mno-sse" } */
 
 #ifndef SIZE
 #define SIZE 1024
@@ -33,3 +30,6 @@ 
   for (; i < SIZE; ++i)
     a[i] = b[i] - c[i];
 }
+
+/* { dg-final { scan-assembler "addps\[ \t\]" } } */
+/* { dg-final { scan-assembler "fsubs\[ \t\]" } } */
Index: gcc.target/i386/sse-5.c
===================================================================
--- gcc.target/i386/sse-5.c	(revision 180391)
+++ gcc.target/i386/sse-5.c	(working copy)
@@ -1,7 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-require-effective-target ia32 } */
-/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */
-/* { dg-options "-Winline -Wno-psabi -O2 -march=i386" } */
+/* { dg-options "-Winline -Wno-psabi -O2 -mno-sse" } */
 
 typedef double v2df __attribute__ ((vector_size (16)));
 v2df p;
Index: gcc.target/i386/funcspec-3.c
===================================================================
--- gcc.target/i386/funcspec-3.c	(revision 180391)
+++ gcc.target/i386/funcspec-3.c	(working copy)
@@ -2,7 +2,7 @@ 
    setting the architecture.  */
 /* { dg-do compile } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-options "-O2 -march=k8" } */
+/* { dg-options "-O2 -march=k8 -mno-sse3" } */
 
 extern void exit (int);
 extern void abort (void);