i386-2.C: Include bmmintrin.h.
authorUros Bizjak <ubizjak@gmail.com>
Sat, 27 Oct 2007 16:17:49 +0000 (18:17 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 27 Oct 2007 16:17:49 +0000 (18:17 +0200)
        * 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/i386-2.C
gcc/testsuite/gcc.target/i386/sse-13.c
gcc/testsuite/gcc.target/i386/sse-14.c

index 0705dc14dc46e67dc2b07efcd50f970c9bca4edb..6f787ba8a83f74e9139f8602cc248759aab0b510 100644 (file)
@@ -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
index 2b9509ac503a3436f4ae7e4dfa43df9605bb1cf4..0dc279998125634c57aa9268a9c2cf4b900ff564 100644 (file)
@@ -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>
 
index d4db15db6610a95e45a14cff08f35dd6de2a15e9..ed3f99f93fa6c6f3d3126503c9694e7b094bf47a 100644 (file)
@@ -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>
index fc8266bf11b542dbdaa5acca1731c66cd9b6c94e..fc93f6de06ab5f0e0c9e2aea10d592b4696eb2cc 100644 (file)
@@ -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>