aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c
blob: ebfb170ecee56f9831135f1e98c8f1b09fbd14ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-options "-O3 -mcpu=v6.00.a " } */

volatile float f1, f2, f3;

void float_func () 
{
    /* { dg-final { scan-assembler-not "fcmp" } } */
    if (f2 <= f3) 
        print ("le");
    else if (f2 == f3) 
        print ("eq");
    else if (f2 < f3) 
        print ("lt");
    else if (f2 > f3) 
        print ("gt");
    else if (f2 >= f3) 
        print ("ge");
    else if (f2 != f3) 
        print ("ne");
    
}