Handle Octeon 3 not supporting MIPS paired-single instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msubu-1.c
blobe1146f8bca967e6bc24773593ae51fa112290923
1 /* { dg-do compile } */
2 /* This test requires widening_mul */
3 /* { dg-options "-march=vr5400 -mgp32 -fexpensive-optimizations" } */
4 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 /* { dg-final { scan-assembler-times "\tmsacu\t\\\$0," 2 } } */
7 typedef unsigned int ui;
8 typedef unsigned long long ull;
10 NOMIPS16 ull
11 f1 (ui x, ui y, ull z)
13 return z - (ull) y * x;
16 NOMIPS16 ull
17 f2 (ui x, ui y, ull z)
19 ull t = (ull) x * y;
20 int temp = 5;
21 if (temp == 5)
22 z -= t;
23 return z;