OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [sse-21.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Test that we don't generate a fisttp instruction when -mno-sse3.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O -mfpmath=387 -march=nocona -mno-sse3" } */
4
/* { dg-final { scan-assembler-not "fisttp" } } */
5
struct foo
6
{
7
 long a;
8
 long b;
9
};
10
 
11
extern double c;
12
 
13
extern unsigned long long baz (void);
14
 
15
int
16
walrus (const struct foo *input)
17
{
18
    unsigned long long d;
19
 
20
    d = baz ()
21
      + (unsigned long long) (((double) input->a * 1000000000
22
                              + (double) input->b) * c);
23
    return (d ? 1 : 0);
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.