aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-ssefp-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/i386-ssefp-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/i386-ssefp-2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/i386-ssefp-2.c b/gcc/testsuite/gcc.dg/i386-ssefp-2.c
new file mode 100644
index 00000000000..0d1ced2fee0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/i386-ssefp-2.c
@@ -0,0 +1,15 @@
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -msse2 -march=athlon -mfpmath=sse" } */
+/* { dg-final { scan-assembler "maxsd" } } */
+/* { dg-final { scan-assembler "minsd" } } */
+double x;
+q()
+{
+ x=x<5?5:x;
+}
+
+double x;
+q1()
+{
+ x=x>5?5:x;
+}