diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-05-21 17:40:01 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-05-21 17:40:01 +0200 |
commit | 32fe15ec71951cb18be7d3f90019147b55b8ee76 (patch) | |
tree | a22c19f63607dd1c196746d1021d2233ecf3bc14 /gcc/testsuite | |
parent | c4ba884897fc5aa644f3d43990431e023ed618f4 (diff) | |
download | gcc-32fe15ec71951cb18be7d3f90019147b55b8ee76.zip gcc-32fe15ec71951cb18be7d3f90019147b55b8ee76.tar.gz gcc-32fe15ec71951cb18be7d3f90019147b55b8ee76.tar.bz2 |
tmmintrin.h (_mm_alignr_epi8): Provide macro implementation if __OPTIMIZE__ is not defined.
* config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
implementation if __OPTIMIZE__ is not defined.
(_mm_alignr_pi8): Ditto.
* config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
(_mm_inserti_si64): Ditto.
* config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
(_mm_slli_epi16): Ditto.
(_mm_slli_epi32): Ditto.
(_mm_slli_epi64): Ditto.
(_mm_srai_epi16): Ditto.
(_mm_srai_epi32): Ditto.
(_mm_srli_si128): Ditto.
(_mm_slli_si128): Ditto.
(_mm_srli_epi16): Ditto.
(_mm_srli_epi32): Ditto.
(_mm_srli_epi64): Ditto.
(_mm_extract_epi16): Ditto.
(_mm_insert_epi16): Ditto.
(_mm_shufflehi_epi16): Ditto.
(_mm_shufflelo_epi16): Ditto.
(_mm_shuffle_epi32): Ditto.
* config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
(_m_pextrw): Ditto.
(_mm_insert_pi16): Ditto.
(_m_pinsrw): Ditto.
(_mm_shuffle_pi16): Ditto.
(_m_pshufw): Ditto.
(_mm_shufle_ps): Ditto.
(_mm_prefetch): Ditto.
testsuite/ChangeLog:
* gcc.target/i386/sse-14.c: Remove all intrinsic redefines.
* gcc.target/i386/sse-12: Add -O to compile options.
* g++.dg/other/i386-2.C: Use "-march=k8 -m3dnow -mssse3
-msse4a" instead of "-msse3". Include only ammintrin.h, tmmintrin.h
and mm3dnow.h. Add -O to compile options.
From-SVN: r124904
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/i386-1.C | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/i386-2.C | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse-12.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse-14.c | 37 |
5 files changed, 17 insertions, 49 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 031c15d..9e32a38 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2007-05-21 Uros Bizjak <ubizjak@gmail.com> + + * gcc.target/i386/sse-14.c: Remove all intrinsic redefines. + * gcc.target/i386/sse-12: Add -O to compile options. + * g++.dg/other/i386-2.C: Use "-march=k8 -m3dnow -mssse3 + -msse4a" instead of "-msse3". Include only ammintrin.h, tmmintrin.h + and mm3dnow.h. Add -O to compile options. + 2007-05-21 Paul Thomas <pault@gcc.gnu.org> PR fortran/31867 diff --git a/gcc/testsuite/g++.dg/other/i386-1.C b/gcc/testsuite/g++.dg/other/i386-1.C index 8f03a33..8631617 100644 --- a/gcc/testsuite/g++.dg/other/i386-1.C +++ b/gcc/testsuite/g++.dg/other/i386-1.C @@ -1,6 +1,5 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-march=pentium4" } */ -/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-msse2" } */ #include <xmmintrin.h> #include <stdio.h> diff --git a/gcc/testsuite/g++.dg/other/i386-2.C b/gcc/testsuite/g++.dg/other/i386-2.C index b988f9d..e970923 100644 --- a/gcc/testsuite/g++.dg/other/i386-2.C +++ b/gcc/testsuite/g++.dg/other/i386-2.C @@ -1,12 +1,10 @@ -/* Test that {,x,e,p}mmintrin.h and mm_malloc.h are - usable with -pedantic-errors. */ +/* Test that {,x,e,p,t,a}mmintrin.h, mm3dnow.h and mm_malloc.h are + usable with -O -pedantic-errors. */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-pedantic-errors -msse3" } */ +/* { dg-options "-O -pedantic-errors -march=k8 -m3dnow -mssse3 -msse4a" } */ -#include <mmintrin.h> -#include <xmmintrin.h> -#include <emmintrin.h> -#include <pmmintrin.h> -#include <mm_malloc.h> +#include <ammintrin.h> +#include <tmmintrin.h> +#include <mm3dnow.h> int dummy; diff --git a/gcc/testsuite/gcc.target/i386/sse-12.c b/gcc/testsuite/gcc.target/i386/sse-12.c index c0ab478..de96ea8 100644 --- a/gcc/testsuite/gcc.target/i386/sse-12.c +++ b/gcc/testsuite/gcc.target/i386/sse-12.c @@ -1,7 +1,7 @@ /* Test that {,x,e,p,t,a}mmintrin.h, mm3dnow.h and mm_malloc.h are - usable with -std=c89 -pedantic-errors. */ + usable with -O -std=c89 -pedantic-errors. */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-std=c89 -pedantic-errors -march=k8 -m3dnow -mssse3 -msse4a" } */ +/* { dg-options "-O -std=c89 -pedantic-errors -march=k8 -m3dnow -mssse3 -msse4a" } */ #include <ammintrin.h> #include <tmmintrin.h> diff --git a/gcc/testsuite/gcc.target/i386/sse-14.c b/gcc/testsuite/gcc.target/i386/sse-14.c index aca882a..4e06514 100644 --- a/gcc/testsuite/gcc.target/i386/sse-14.c +++ b/gcc/testsuite/gcc.target/i386/sse-14.c @@ -9,43 +9,6 @@ #define static #define __inline -/* Following intrinsics require immediate arguments. */ - -/* ammintrin.h */ -#define __builtin_ia32_extrqi(X, I, L) __builtin_ia32_extrqi(X, 1, 1) -#define __builtin_ia32_insertqi(X, Y, I, L) __builtin_ia32_insertqi(X, Y, 1, 1) - -/* tmmintrin.h */ -#define __builtin_ia32_palignr128(X, Y, N) __builtin_ia32_palignr128(X, Y, 8) -#define __builtin_ia32_palignr(X, Y, N) __builtin_ia32_palignr(X, Y, 8) - -/* emmintrin.h */ -#define __builtin_ia32_psllwi128(A, B) __builtin_ia32_psllwi128(A, 1) -#define __builtin_ia32_psrlqi128(A, B) __builtin_ia32_psrlqi128(A, 1) -#define __builtin_ia32_psrlwi128(A, B) __builtin_ia32_psrlwi128(A, 1) -#define __builtin_ia32_psrldi128(A, B) __builtin_ia32_psrldi128(A, 1) -#define __builtin_ia32_psrldqi128(A, B) __builtin_ia32_psrldqi128(A, 8) -#define __builtin_ia32_pslldqi128(A, B) __builtin_ia32_pslldqi128(A, 8) -#define __builtin_ia32_psrawi128(A, B) __builtin_ia32_psrawi128(A, 1) -#define __builtin_ia32_psradi128(A, B) __builtin_ia32_psradi128(A, 1) -#define __builtin_ia32_psllqi128(A, B) __builtin_ia32_psllqi128(A, 1) -#define __builtin_ia32_pslldi128(A, B) __builtin_ia32_pslldi128(A, 1) -#define __builtin_ia32_pshufhw(A, N) __builtin_ia32_pshufhw(A, 0) -#define __builtin_ia32_pshuflw(A, N) __builtin_ia32_pshuflw(A, 0) -#define __builtin_ia32_pshufd(A, N) __builtin_ia32_pshufd(A, 0) -#define __builtin_ia32_vec_set_v8hi(A, D, N) \ - __builtin_ia32_vec_set_v8hi(A, D, 0) -#define __builtin_ia32_vec_ext_v8hi(A, N) __builtin_ia32_vec_ext_v8hi(A, 0) -#define __builtin_ia32_shufpd(A, B, N) __builtin_ia32_shufpd(A, B, 0) - -/* xmmintrin.h */ -#define __builtin_prefetch(P, A, I) __builtin_prefetch(P, A, _MM_HINT_NTA) -#define __builtin_ia32_pshufw(A, N) __builtin_ia32_pshufw(A, 0) -#define __builtin_ia32_vec_set_v4hi(A, D, N) \ - __builtin_ia32_vec_set_v4hi(A, D, 0) -#define __builtin_ia32_vec_ext_v4hi(A, N) __builtin_ia32_vec_ext_v4hi(A, 0) -#define __builtin_ia32_shufps(A, B, N) __builtin_ia32_shufps(A, B, 0) - #include <ammintrin.h> #include <tmmintrin.h> |