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

Unified Diff: gcc/gcc/testsuite/gcc.target/i386/funcspec-9.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-8.c ('k') | gcc/gcc/testsuite/gcc.target/i386/incoming-4.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-9.c
diff --git a/gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c b/gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c
index 1a7fc1b5890d5544feadf1927ba0f5385b57196b..1c05f134ab546f376bbd4c8663f91c00a9e9180a 100644
--- a/gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c
+++ b/gcc/gcc/testsuite/gcc.target/i386/funcspec-9.c
@@ -1,18 +1,19 @@
-/* Test whether using target specific options, we can generate SSE5 code. */
+/* Test whether using target specific options, we can generate FMA4 code. */
/* { dg-do compile } */
/* { dg-options "-O2 -march=k8 -mfpmath=sse -msse2" } */
+/* { dg-require-effective-target sse2 } */
extern void exit (int);
-#ifdef __SSE5__
-#warning "__SSE5__ should not be defined before #pragma GCC target."
+#ifdef __FMA4__
+#warning "__FMA4__ should not be defined before #pragma GCC target."
#endif
#pragma GCC push_options
-#pragma GCC target ("sse5,fused-madd")
+#pragma GCC target ("fma4")
-#ifndef __SSE5__
-#warning "__SSE5__ should have be defined after #pragma GCC target."
+#ifndef __FMA4__
+#warning "__FMA4__ should have be defined after #pragma GCC target."
#endif
float
@@ -22,8 +23,8 @@ flt_mul_add (float a, float b, float c)
}
#pragma GCC pop_options
-#ifdef __SSE5__
-#warning "__SSE5__ should not be defined after #pragma GCC pop target."
+#ifdef __FMA4__
+#warning "__FMA4__ should not be defined after #pragma GCC pop target."
#endif
double
@@ -32,5 +33,5 @@ dbl_mul_add (double a, double b, double c)
return (a * b) + c;
}
-/* { dg-final { scan-assembler "fmaddss" } } */
+/* { dg-final { scan-assembler "vfmaddss" } } */
/* { dg-final { scan-assembler "addsd" } } */
« no previous file with comments | « gcc/gcc/testsuite/gcc.target/i386/funcspec-8.c ('k') | gcc/gcc/testsuite/gcc.target/i386/incoming-4.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698