diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-10-27 18:17:49 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-10-27 18:17:49 +0200 |
commit | 735da29ae3b49afa8f4e14b622713f9daf6523da (patch) | |
tree | 98c260dd380847f343c81e505bf5d02fa01e9d1f /gcc | |
parent | d5aa2cf0dea53d48edf46232347f483110dc9d49 (diff) | |
download | gcc-735da29ae3b49afa8f4e14b622713f9daf6523da.zip gcc-735da29ae3b49afa8f4e14b622713f9daf6523da.tar.gz gcc-735da29ae3b49afa8f4e14b622713f9daf6523da.tar.bz2 |
i386-2.C: Include bmmintrin.h.
* g++.dg/other/i386-2.C: Include bmmintrin.h. Add -msse5 to dg-options.
* gcc.target/i386/sse-13.c: Also include mm3dnow.h. Add
"-march=k8 -m3dnow" to check 3dnow and 3dnowA intrinsics.
* gcc.target/i386/sse-14.c: Ditto.
From-SVN: r129684
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/i386-2.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse-13.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse-14.c | 9 |
4 files changed, 20 insertions, 11 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0705dc14..6f787ba 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2007-10-27 Uros Bizjak <ubizjak@gmail.com> + + * g++.dg/other/i386-2.C: Include bmmintrin.h. Add -msse5 to dg-options. + * gcc.target/i386/sse-13.c: Also include mm3dnow.h. Add + "-march=k8 -m3dnow" to check 3dnow and 3dnowA intrinsics. + * gcc.target/i386/sse-14.c: Ditto. + 2007-10-27 Jakub Jelinek <jakub@redhat.com> PR c++/33844 diff --git a/gcc/testsuite/g++.dg/other/i386-2.C b/gcc/testsuite/g++.dg/other/i386-2.C index 2b9509ac..0dc2799 100644 --- a/gcc/testsuite/g++.dg/other/i386-2.C +++ b/gcc/testsuite/g++.dg/other/i386-2.C @@ -1,9 +1,9 @@ -/* Test that {,x,e,p,t,s,a}mmintrin.h, mm3dnow.h and mm_malloc.h are +/* Test that {,x,e,p,t,s,a,b}mmintrin.h, mm3dnow.h and mm_malloc.h are usable with -O -pedantic-errors. */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O -pedantic-errors -march=k8 -m3dnow -msse4.1 -msse4a" } */ +/* { dg-options "-O -pedantic-errors -march=k8 -m3dnow -msse4.1 -msse5" } */ -#include <ammintrin.h> +#include <bmmintrin.h> #include <smmintrin.h> #include <mm3dnow.h> diff --git a/gcc/testsuite/gcc.target/i386/sse-13.c b/gcc/testsuite/gcc.target/i386/sse-13.c index d4db15d..ed3f99f 100644 --- a/gcc/testsuite/gcc.target/i386/sse-13.c +++ b/gcc/testsuite/gcc.target/i386/sse-13.c @@ -1,10 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -msse4.1 -msse5 " } */ +/* { dg-options "-O2 -march=k8 -m3dnow -msse4.1 -msse5 " } */ /* Test that the intrinsics compile with optimization. All of them are - defined as inline functions in {,x,e,p,t,s,a,b}mmintrin.h that reference - the proper builtin functions. Defining away "static" and "__inline" - results in all of them being compiled as proper functions. */ + defined as inline functions in {,x,e,p,t,s,a,b}mmintrin.h and mm3dnow.h + that reference the proper builtin functions. Defining away "static" and + "__inline" results in all of them being compiled as proper functions. */ #define static #define __inline @@ -66,3 +66,4 @@ #include <bmmintrin.h> #include <smmintrin.h> +#include <mm3dnow.h> diff --git a/gcc/testsuite/gcc.target/i386/sse-14.c b/gcc/testsuite/gcc.target/i386/sse-14.c index fc8266b..fc93f6d 100644 --- a/gcc/testsuite/gcc.target/i386/sse-14.c +++ b/gcc/testsuite/gcc.target/i386/sse-14.c @@ -1,13 +1,14 @@ /* { dg-do compile } */ -/* { dg-options "-O0 -msse4.1 -msse5" } */ +/* { dg-options "-O0 -march=k8 -m3dnow -msse4.1 -msse5" } */ /* Test that the intrinsics compile without optimization. All of them are - defined as inline functions in {,x,e,p,t,s,a}mmintrin.h that reference - the proper builtin functions. Defining away "static" and "__inline" - results in all of them being compiled as proper functions. */ + defined as inline functions in {,x,e,p,t,s,a,b}mmintrin.h and mm3dnow.h + that reference the proper builtin functions. Defining away "static" and + "__inline" results in all of them being compiled as proper functions. */ #define static #define __inline #include <bmmintrin.h> #include <smmintrin.h> +#include <mm3dnow.h> |