Add gcc.c-torture/compile/pr97243.c testcase.
authorJan Hubicka <jh@suse.cz>
Thu, 1 Oct 2020 13:43:56 +0000 (15:43 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 1 Oct 2020 13:43:56 +0000 (15:43 +0200)
PR ipa/97243
* gcc.c-torture/compile/pr97243.c: New test.

gcc/testsuite/gcc.c-torture/compile/pr97243.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr97243.c b/gcc/testsuite/gcc.c-torture/compile/pr97243.c
new file mode 100644 (file)
index 0000000..4d10a22
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-options "-fipa-modref -fipa-icf" } */
+float fma_test1(float a, float b, float c) {
+  float x = a * b + c;
+  return x;
+}
+float fma_test2(float a, float b, float c) {
+  float x = a * b + c;
+  return x;
+}
+