diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.target/i386/ssefp-1.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.target/i386/ssefp-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.target/i386/ssefp-1.c b/gcc-4.8/gcc/testsuite/gcc.target/i386/ssefp-1.c new file mode 100644 index 000000000..621e362f4 --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.target/i386/ssefp-1.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -msse2 -march=k8 -mfpmath=sse" } */ +/* { dg-final { scan-assembler "maxsd" } } */ +/* { dg-final { scan-assembler "minsd" } } */ +double x; +t() +{ + x=x>5?x:5; +} + +double x; +q() +{ + x=x<5?x:5; +} |