sse-13.c: Move __builtin_ia32_round* to new /* mmintrin-common.h */ section.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 11 Apr 2008 13:30:52 +0000 (13:30 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 11 Apr 2008 13:30:52 +0000 (06:30 -0700)
2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/sse-13.c: Move __builtin_ia32_round* to new
/* mmintrin-common.h */ section.

* gcc.target/i386/sse-14.c: Add tests for mmintrin-common.h.

From-SVN: r134195

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/sse-13.c
gcc/testsuite/gcc.target/i386/sse-14.c

index 5f238b62eddaf87f7106f7f13540855a489040bb..8e6dd3940465b3c02465302ef33ac3d11238dde0 100644 (file)
@@ -1,3 +1,10 @@
+2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gcc.target/i386/sse-13.c: Move __builtin_ia32_round* to new
+       /* mmintrin-common.h */ section.
+
+       * gcc.target/i386/sse-14.c: Add tests for mmintrin-common.h.
+
 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
 
        PR c/35744
index aa6bc69e978a713b3c775f14c61638020e1ab101..e3deeca3549e09c39caf1ca137f6689fd113559e 100644 (file)
 #define __builtin_ia32_aeskeygenassist128(X, C) __builtin_ia32_aeskeygenassist128(X, 1)
 #define __builtin_ia32_pclmulqdq128(X, Y, I) __builtin_ia32_pclmulqdq128(X, Y, 1)
 
+/* mmintrin-common.h */
+#define __builtin_ia32_roundpd(V, M) __builtin_ia32_roundpd(V, 1)
+#define __builtin_ia32_roundsd(D, V, M) __builtin_ia32_roundsd(D, V, 1)
+#define __builtin_ia32_roundps(V, M) __builtin_ia32_roundps(V, 1)
+#define __builtin_ia32_roundss(D, V, M) __builtin_ia32_roundss(D, V, 1)
+
 /* smmintrin.h */
 #define __builtin_ia32_pblendw128(X, Y, M) __builtin_ia32_pblendw128 (X, Y, 1)
 #define __builtin_ia32_blendps(X, Y, M) __builtin_ia32_blendps(X, Y, 1)
 #define __builtin_ia32_vec_ext_v16qi(X, N) __builtin_ia32_vec_ext_v16qi(X, 1)
 #define __builtin_ia32_vec_ext_v4si(X, N) __builtin_ia32_vec_ext_v4si(X, 1)
 #define __builtin_ia32_vec_ext_v2di(X, N) __builtin_ia32_vec_ext_v2di(X, 1)
-#define __builtin_ia32_roundpd(V, M) __builtin_ia32_roundpd(V, 1)
-#define __builtin_ia32_roundsd(D, V, M) __builtin_ia32_roundsd(D, V, 1)
-#define __builtin_ia32_roundps(V, M) __builtin_ia32_roundps(V, 1)
-#define __builtin_ia32_roundss(D, V, M) __builtin_ia32_roundss(D, V, 1)
 #define __builtin_ia32_mpsadbw128(X, Y, M) __builtin_ia32_mpsadbw128(X, Y, 1)
 #define __builtin_ia32_pcmpistrm128(X, Y, M) \
   __builtin_ia32_pcmpistrm128(X, Y, 1)
index 264cdb63c6634b1a284336923c986a336ed7f11c..35db725def896cb1d0f83ed1dce6c6b3b239b026 100644 (file)
@@ -51,6 +51,12 @@ test_2x (_mm_inserti_si64, __m128i, __m128i, __m128i, 1, 1)
 test_1 (_mm_aeskeygenassist_si128, __m128i, __m128i, 1)
 test_2 (_mm_clmulepi64_si128, __m128i, __m128i, __m128i, 1)
 
+/* mmintrin-common.h */
+test_1 (_mm_round_pd, __m128d, __m128d, 1)
+test_1 (_mm_round_ps, __m128, __m128, 1)
+test_2 (_mm_round_sd, __m128d, __m128d, __m128d, 1)
+test_2 (_mm_round_ss, __m128, __m128, __m128, 1)
+
 /* smmintrin.h */
 test_2 (_mm_blend_epi16, __m128i, __m128i, __m128i, 1)
 test_2 (_mm_blend_ps, __m128, __m128, __m128, 1)