diff options
Diffstat (limited to 'gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c')
-rw-r--r-- | gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c b/gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c index 67da6608a..4c4232cdb 100644 --- a/gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c +++ b/gcc-4.4.3/gcc/testsuite/gcc.target/i386/sse-14.c @@ -1,12 +1,13 @@ /* { dg-do compile } */ -/* { dg-options "-O0 -Werror-implicit-function-declaration -march=k8 -m3dnow -mavx -msse5 -maes -mpclmul" } */ +/* { dg-options "-O0 -Werror-implicit-function-declaration -march=k8 -m3dnow -mavx -msse5 -maes -mpclmul -mlwp" } */ #include <mm_malloc.h> /* Test that the intrinsics compile without optimization. All of them are - defined as inline functions in {,x,e,p,t,s,w,a,b}mmintrin.h and mm3dnow.h - that reference the proper builtin functions. Defining away "extern" and - "__inline" results in all of them being compiled as proper functions. */ + defined as inline functions in {,x,e,p,t,s,w,a,b}mmintrin.h, lwpintrin.h + and mm3dnow.h that reference the proper builtin functions. Defining away + "extern" and "__inline" results in all of them being compiled as proper + functions. */ #define extern #define __inline @@ -162,3 +163,11 @@ test_1 (_mm_roti_epi8, __m128i, __m128i, 1) test_1 (_mm_roti_epi16, __m128i, __m128i, 1) test_1 (_mm_roti_epi32, __m128i, __m128i, 1) test_1 (_mm_roti_epi64, __m128i, __m128i, 1) + +/* lwpintrin.h */ +test_2 ( __lwpval32, void, unsigned int, unsigned int, 1) +test_2 ( __lwpins32, unsigned char, unsigned int, unsigned int, 1) +#ifdef __x86_64__ +test_2 ( __lwpval64, void, unsigned long long, unsigned int, 1) +test_2 ( __lwpins64, unsigned char, unsigned long long, unsigned int, 1) +#endif |