PR target/29169
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse-21.c
blob119cc94c3187e676be11cbfa166435924a82718e
1 /* Test that we don't generate a fisttp instruction when -mno-sse3. */
2 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O -mfpmath=387 -march=nocona -mno-sse3" } */
4 /* { dg-final { scan-assembler-not "fisttp" } } */
5 struct foo
7 long a;
8 long b;
9 };
11 extern double c;
13 extern unsigned long long baz (void);
15 int
16 walrus (const struct foo *input)
18 unsigned long long d;
20 d = baz ()
21 + (unsigned long long) (((double) input->a * 1000000000
22 + (double) input->b) * c);
23 return (d ? 1 : 0);