diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr26778.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr26778.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr26778.c b/gcc/testsuite/gcc.target/i386/pr26778.c new file mode 100644 index 000000000..6f6f27725 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr26778.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-O2 -march=pentium3" } */ + +typedef union { + long long l; + double d; +} db_number; + +double test(double x[3]) { + double th = x[1] + x[2]; + if (x[2] != th - x[1]) { + db_number thdb; + thdb.d = th; + thdb.l++; + th = thdb.d; + } + return x[0] + th; +} + +/* { dg-final { scan-assembler-not "mov.ps" } } */ |