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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [microblaze/] [isa/] [nofcmp.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-O3 -mcpu=v6.00.a " } */
2
 
3
volatile float f1, f2, f3;
4
 
5
void float_func ()
6
{
7
    /* { dg-final { scan-assembler-not "fcmp" } } */
8
    if (f2 <= f3)
9
        print ("le");
10
    else if (f2 == f3)
11
        print ("eq");
12
    else if (f2 < f3)
13
        print ("lt");
14
    else if (f2 > f3)
15
        print ("gt");
16
    else if (f2 >= f3)
17
        print ("ge");
18
    else if (f2 != f3)
19
        print ("ne");
20
 
21
}

powered by: WebSVN 2.1.0

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