summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/epiphany/fcmp-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/epiphany/fcmp-1.c')
-rw-r--r--gcc/testsuite/gcc.target/epiphany/fcmp-1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/epiphany/fcmp-1.c b/gcc/testsuite/gcc.target/epiphany/fcmp-1.c
new file mode 100644
index 00000000000..d935eb4e909
--- /dev/null
+++ b/gcc/testsuite/gcc.target/epiphany/fcmp-1.c
@@ -0,0 +1,13 @@
+/* { dg-options "-Ofast -mno-soft-cmpsf" } */
+
+#if 0
+#include <math.h>
+#else
+extern float fminf (float, float);
+#endif
+void test(int a, float *b, int n)
+{
+ if (n < 10) {
+ *b = a*fminf(0.0,1.0*a);
+ }
+}