From 19defc331f5c8ae6d33b635c86cd89c2b70fc6d7 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 4 May 2011 20:59:04 +0200 Subject: [PATCH] recip-vec-divf.c: Decrease array sizes. * gcc.target/i386/recip-vec-divf.c: Decrease array sizes. * gcc.target/i386/recip-vec-sqrtf.c: Ditto. * gcc.target/i386/recip-vec-divf-avx.c: Increase array sizes. * gcc.target/i386/recip-vec-sqrtf-avx.c: Ditto. Update scan times. * gcc.target/i386/ssefn-1.c: Add -mno-sse2 to dg-options. * gcc.target/i386/pr38824.c: Ditto. * gcc.target/i386/vecinit-1.c: Add -mno-sse4 to dg-options. * gcc.target/i386/vecinit-2.c: Ditto. * gcc.target/i386/sse-19.c: Add -mno-ssse3 to dg-options. * gcc.target/i386/parity-1.c: Add -mno-popcnt to dg-options. * gcc.target/i386/parity-2.c: Ditto. * gcc.target/i386/incoming-8.c: Add -mno-avx to dg-options. From-SVN: r173390 --- gcc/testsuite/ChangeLog | 15 +++++++++++++++ gcc/testsuite/gcc.target/i386/incoming-8.c | 2 +- gcc/testsuite/gcc.target/i386/parity-1.c | 2 +- gcc/testsuite/gcc.target/i386/parity-2.c | 2 +- gcc/testsuite/gcc.target/i386/pr38824.c | 2 +- .../gcc.target/i386/recip-vec-divf-avx.c | 8 ++++---- gcc/testsuite/gcc.target/i386/recip-vec-divf.c | 8 ++++---- .../gcc.target/i386/recip-vec-sqrtf-avx.c | 15 +++++++-------- gcc/testsuite/gcc.target/i386/recip-vec-sqrtf.c | 12 ++++++------ gcc/testsuite/gcc.target/i386/sse-19.c | 2 +- gcc/testsuite/gcc.target/i386/ssefn-1.c | 2 +- gcc/testsuite/gcc.target/i386/vecinit-1.c | 2 +- gcc/testsuite/gcc.target/i386/vecinit-2.c | 2 +- 13 files changed, 44 insertions(+), 30 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 32386e5ffe7..98d963c4556 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2011-05-04 Uros Bizjak + + * gcc.target/i386/recip-vec-divf.c: Decrease array sizes. + * gcc.target/i386/recip-vec-sqrtf.c: Ditto. + * gcc.target/i386/recip-vec-divf-avx.c: Increase array sizes. + * gcc.target/i386/recip-vec-sqrtf-avx.c: Ditto. Update scan times. + * gcc.target/i386/ssefn-1.c: Add -mno-sse2 to dg-options. + * gcc.target/i386/pr38824.c: Ditto. + * gcc.target/i386/vecinit-1.c: Add -mno-sse4 to dg-options. + * gcc.target/i386/vecinit-2.c: Ditto. + * gcc.target/i386/sse-19.c: Add -mno-ssse3 to dg-options. + * gcc.target/i386/parity-1.c: Add -mno-popcnt to dg-options. + * gcc.target/i386/parity-2.c: Ditto. + * gcc.target/i386/incoming-8.c: Add -mno-avx to dg-options. + 2011-05-04 Stuart Henderson * gcc.target/bfin/mcpu-bf512.c: Update to latest silicon revision and diff --git a/gcc/testsuite/gcc.target/i386/incoming-8.c b/gcc/testsuite/gcc.target/i386/incoming-8.c index 2dd8800fd6c..a4904fba373 100644 --- a/gcc/testsuite/gcc.target/i386/incoming-8.c +++ b/gcc/testsuite/gcc.target/i386/incoming-8.c @@ -1,6 +1,6 @@ /* PR target/40838 */ /* { dg-do compile { target { { ! *-*-darwin* } && ilp32 } } } */ -/* { dg-options "-w -mstackrealign -O3 -msse2 -mpreferred-stack-boundary=4" } */ +/* { dg-options "-w -mstackrealign -O3 -msse2 -mno-avx -mpreferred-stack-boundary=4" } */ float foo (float f) diff --git a/gcc/testsuite/gcc.target/i386/parity-1.c b/gcc/testsuite/gcc.target/i386/parity-1.c index eaf41cf082d..1b0001ef2ad 100644 --- a/gcc/testsuite/gcc.target/i386/parity-1.c +++ b/gcc/testsuite/gcc.target/i386/parity-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=k8" } */ +/* { dg-options "-O2 -march=k8 -mno-popcnt" } */ /* { dg-final { scan-assembler "setnp" } } */ int foo(unsigned int x) diff --git a/gcc/testsuite/gcc.target/i386/parity-2.c b/gcc/testsuite/gcc.target/i386/parity-2.c index 03a80616528..9adca35a667 100644 --- a/gcc/testsuite/gcc.target/i386/parity-2.c +++ b/gcc/testsuite/gcc.target/i386/parity-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=k8" } */ +/* { dg-options "-O2 -march=k8 -mno-popcnt" } */ /* { dg-final { scan-assembler "setnp" } } */ int foo(unsigned long long int x) diff --git a/gcc/testsuite/gcc.target/i386/pr38824.c b/gcc/testsuite/gcc.target/i386/pr38824.c index 637abfde888..9fbfc502d6b 100644 --- a/gcc/testsuite/gcc.target/i386/pr38824.c +++ b/gcc/testsuite/gcc.target/i386/pr38824.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse" } */ +/* { dg-options "-O2 -msse -mno-sse2" } */ typedef float v4sf __attribute__ ((__vector_size__ (16))); diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c index dfc4c73dfd6..8aeec20d5c5 100644 --- a/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c +++ b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c @@ -1,15 +1,15 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */ -float a[16]; -float b[16]; -float r[16]; +float a[32]; +float b[32]; +float r[32]; void t1(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 32; i++) r[i] = a[i] / b[i]; } diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-divf.c b/gcc/testsuite/gcc.target/i386/recip-vec-divf.c index 4bdbba79f34..0c0cd42ae8a 100644 --- a/gcc/testsuite/gcc.target/i386/recip-vec-divf.c +++ b/gcc/testsuite/gcc.target/i386/recip-vec-divf.c @@ -1,15 +1,15 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse -mfpmath=sse -mrecip" } */ -float a[16]; -float b[16]; -float r[16]; +float a[4]; +float b[4]; +float r[4]; void t1(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 4; i++) r[i] = a[i] / b[i]; } diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c index 5a8e6967b42..9cf3cc81be5 100644 --- a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c +++ b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf-avx.c @@ -1,9 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */ -float a[16]; -float b[16]; -float r[16]; +float a[32]; +float b[32]; +float r[32]; extern float sqrtf (float); @@ -11,7 +11,7 @@ void t1(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 32; i++) r[i] = a[i] / sqrtf (b[i]); } @@ -19,7 +19,7 @@ void t2(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 32; i++) r[i] = sqrtf (a[i] / b[i]); } @@ -27,9 +27,8 @@ void t3(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 32; i++) r[i] = sqrtf (a[i]); } -/* Last loop is small enough to be fully unrolled. */ -/* { dg-final { scan-assembler-times "vrsqrtps\[ \\t\]+\[^\n\]*%ymm" 6 } } */ +/* { dg-final { scan-assembler-times "vrsqrtps\[ \\t\]+\[^\n\]*%ymm" 3 } } */ diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf.c b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf.c index bcef700ec60..9ac9bd76ce9 100644 --- a/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf.c +++ b/gcc/testsuite/gcc.target/i386/recip-vec-sqrtf.c @@ -1,9 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math -ftree-vectorize -msse -mfpmath=sse -mrecip" } */ -float a[16]; -float b[16]; -float r[16]; +float a[4]; +float b[4]; +float r[4]; extern float sqrtf (float); @@ -11,7 +11,7 @@ void t1(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 4; i++) r[i] = a[i] / sqrtf (b[i]); } @@ -19,7 +19,7 @@ void t2(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 4; i++) r[i] = sqrtf (a[i] / b[i]); } @@ -27,7 +27,7 @@ void t3(void) { int i; - for (i = 0; i < 16; i++) + for (i = 0; i < 4; i++) r[i] = sqrtf (a[i]); } diff --git a/gcc/testsuite/gcc.target/i386/sse-19.c b/gcc/testsuite/gcc.target/i386/sse-19.c index 7a49a98feab..3025567fd81 100644 --- a/gcc/testsuite/gcc.target/i386/sse-19.c +++ b/gcc/testsuite/gcc.target/i386/sse-19.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=x86-64" } } */ -/* { dg-options "-O3 -march=x86-64 -msse2" } */ +/* { dg-options "-O3 -march=x86-64 -msse2 -mno-ssse3" } */ /* { dg-final { scan-assembler "punpcklbw" } } */ extern void abort(); #include diff --git a/gcc/testsuite/gcc.target/i386/ssefn-1.c b/gcc/testsuite/gcc.target/i386/ssefn-1.c index bea6cb2bf0b..786a0835dc6 100644 --- a/gcc/testsuite/gcc.target/i386/ssefn-1.c +++ b/gcc/testsuite/gcc.target/i386/ssefn-1.c @@ -8,7 +8,7 @@ /* { dg-final { scan-assembler-not "movsd" } } */ /* { dg-final { scan-assembler-not "mulsd" } } */ /* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=i386" } } */ -/* { dg-options "-O2 -march=i386 -msse -mfpmath=sse -fno-inline" } */ +/* { dg-options "-O2 -march=i386 -msse -mno-sse2 -mfpmath=sse -fno-inline" } */ static float xs (void) { diff --git a/gcc/testsuite/gcc.target/i386/vecinit-1.c b/gcc/testsuite/gcc.target/i386/vecinit-1.c index a5091cd85f0..17e29598516 100644 --- a/gcc/testsuite/gcc.target/i386/vecinit-1.c +++ b/gcc/testsuite/gcc.target/i386/vecinit-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=k8 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2 -mno-sse4" } */ #define vector __attribute__((vector_size(16))) diff --git a/gcc/testsuite/gcc.target/i386/vecinit-2.c b/gcc/testsuite/gcc.target/i386/vecinit-2.c index 52998a6bfc0..d7b910062d7 100644 --- a/gcc/testsuite/gcc.target/i386/vecinit-2.c +++ b/gcc/testsuite/gcc.target/i386/vecinit-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=k8 -msse2" } */ +/* { dg-options "-O2 -march=k8 -msse2 -mno-sse4" } */ #define vector __attribute__((vector_size(16))) -- 2.30.2