summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr48067.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr48067.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr48067.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr48067.c b/gcc/testsuite/gcc.dg/pr48067.c
new file mode 100644
index 000000000..779690918
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr48067.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -ffast-math -fno-tree-forwprop -fno-tree-reassoc" } */
+/* { dg-options "-O2 -ffast-math -fno-tree-forwprop -fno-tree-reassoc -mfma4" { target x86_64-*-* i?86-*-* } } */
+
+float
+foo (float x, float cim)
+{
+ float c = x * cim;
+ float d = -c;
+ return c - d;
+}