diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/microblaze/isa/fcmp1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/microblaze/isa/fcmp1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/microblaze/isa/fcmp1.c b/gcc/testsuite/gcc.target/microblaze/isa/fcmp1.c new file mode 100644 index 00000000000..4041a241391 --- /dev/null +++ b/gcc/testsuite/gcc.target/microblaze/isa/fcmp1.c @@ -0,0 +1,10 @@ +/* { dg-options "-O3 -mcpu=v6.00.a -mhard-float" } */ + +volatile float f1, f2, f3; + +void float_func () +{ + /* { dg-final { scan-assembler "fcmp\.(le|gt)\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])\[^0-9]" } } */ + if (f2 <= f3) + print ("le"); +} |