summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse-21.c
blob: ca4c114d8bb7a04b3dd532d9f902dd8387168dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Test that we don't generate a fisttp instruction when -mno-sse3.  */
/* { dg-do compile } */
/* { dg-options "-O -mfpmath=387 -march=nocona -mno-sse3" } */
/* { dg-final { scan-assembler-not "fisttp" } } */
struct foo
{
 long a;
 long b;
};

extern double c;

extern unsigned long long baz (void);

int
walrus (const struct foo *input)
{
    unsigned long long d;

    d = baz ()
      + (unsigned long long) (((double) input->a * 1000000000
			      + (double) input->b) * c);
    return (d ? 1 : 0);
}