From 73c977cb0a112ac58fae18af44576ade8ab3aa26 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 1 Oct 2020 15:43:56 +0200 Subject: [PATCH] Add gcc.c-torture/compile/pr97243.c testcase. PR ipa/97243 * gcc.c-torture/compile/pr97243.c: New test. --- gcc/testsuite/gcc.c-torture/compile/pr97243.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr97243.c diff --git a/gcc/testsuite/gcc.c-torture/compile/pr97243.c b/gcc/testsuite/gcc.c-torture/compile/pr97243.c new file mode 100644 index 00000000000..4d10a22de77 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr97243.c @@ -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; +} + -- 2.30.2