Debian Codegraph @

gcc/testsuite/gcc.target/sh/pr56547-2.c

raw
1 /* Verify that the fmac insn is used for the expression 'a * b + a' and
2 'a * a + a' when -ffast-math is specified. */
3 /* { dg-do compile { target { any_fpu } } } */
4 /* { dg-options "-O1 -ffast-math" } */
5 /* { dg-final { scan-assembler-times "fmac" 2 } } */
6
7 float
8 test_00 (float a, float b)
9 {
10 return a * b + a;
11 }
12
13 float
14 test_01 (float a)
15 {
16 return a * a + a;
17 }