summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c')
-rw-r--r--gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c b/gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c
new file mode 100644
index 000000000..ebfb170ec
--- /dev/null
+++ b/gcc/testsuite/gcc.target/microblaze/isa/nofcmp.c
@@ -0,0 +1,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");
+
+}