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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [sse-21.c] - Rev 691

Compare with Previous | Blame | View Log

/* Test that we don't generate a fisttp instruction when -mno-sse3.  */
/* { dg-do compile } */
/* { dg-options "-O -mfpmath=387 -march=nocona -mno-sse3 -mno-avx" } */
/* { 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);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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