Handle Octeon 3 not supporting MIPS paired-single instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / madd-3.c
blobb0771ad9920f57190477e8c88910218711ac6078
1 /* { dg-do compile } */
2 /* { dg-options "(HAS_MADD) -mgp32" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-final { scan-assembler-times "\tmadd\t" 3 } } */
6 NOMIPS16 long long
7 f1 (int x, int y, long long z)
9 return (long long) x * y + z;
12 NOMIPS16 long long
13 f2 (int x, int y, long long z)
15 return z + (long long) y * x;
18 NOMIPS16 long long
19 f3 (int x, int y, long long z)
21 long long t = (long long) x * y;
22 int temp = 5;
23 if (temp == 5)
24 z += t;
25 return z;