Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1751)

Unified Diff: gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/funcspec-5.c ('k') | gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c
diff --git a/gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c b/gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c
index 2478c672d0c0723fc15f464b1f9d83ff8ebd3d38..ba4b7f22743fe3070d3e86682248d538f304ec63 100644
--- a/gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c
+++ b/gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c
@@ -1,6 +1,7 @@
/* Test whether using target specific options, we can use the x86 builtin
functions in functions with the appropriate function specific options. */
/* { dg-do compile } */
+/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=k8" } } */
/* { dg-options "-O2 -march=k8 -mfpmath=sse" } */
typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
@@ -103,23 +104,23 @@ generic_insertq (__m128i a, __m128i b)
return __builtin_ia32_insertq (a, b); /* { dg-error "needs isa option" } */
}
-#ifdef __SSE5__
-#error "-msse5 should not be set for this test"
+#ifdef __FMA4__
+#error "-mfma4 should not be set for this test"
#endif
-__m128d sse5_fmaddpd (__m128d a, __m128d b, __m128d c) __attribute__((__target__("sse5")));
+__m128d fma4_fmaddpd (__m128d a, __m128d b, __m128d c) __attribute__((__target__("fma4")));
__m128d generic_fmaddpd (__m128d a, __m128d b, __m128d c);
__m128d
-sse5_fmaddpd (__m128d a, __m128d b, __m128d c)
+fma4_fmaddpd (__m128d a, __m128d b, __m128d c)
{
- return __builtin_ia32_fmaddpd (a, b, c);
+ return __builtin_ia32_vfmaddpd (a, b, c);
}
__m128d
generic_fmaddpd (__m128d a, __m128d b, __m128d c)
{
- return __builtin_ia32_fmaddpd (a, b, c); /* { dg-error "needs isa option" } */
+ return __builtin_ia32_vfmaddpd (a, b, c); /* { dg-error "needs isa option" } */
}
#ifdef __AES__
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/funcspec-5.c ('k') | gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698