2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr26778.c
blobf871b5d61f37391d154ae4cdea42a05414a70d68
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-O2 -march=pentium3" } */
5 typedef union {
6 long long l;
7 double d;
8 } db_number;
10 double test(double x[3]) {
11 double th = x[1] + x[2];
12 if (x[2] != th - x[1]) {
13 db_number thdb;
14 thdb.d = th;
15 thdb.l++;
16 th = thdb.d;
18 return x[0] + th;
21 /* { dg-final { scan-assembler-not "mov.ps" } } */