1 /* Test MIPS32 DSP REV 2 MULT instruction. Tune for a CPU that has
3 /* { dg-do compile } */
4 /* This test requires widening_mul */
5 /* { dg-options "-mgp32 -mdspr2 -mtune=74kc -fexpensive-optimizations" } */
6 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
8 /* See PR target/51729 for the reason behind the XFAILs. */
9 /* { dg-final { scan-assembler "\tmult?\t" } } */
10 /* { dg-final { scan-assembler "\\\$ac1" { xfail *-*-* } } } */
11 /* { dg-final { scan-assembler "\\\$ac2" { xfail *-*-* } } } */
13 typedef long long a64
;
15 NOMIPS16 a64
test (a64
*a
, int *b
, int *c
)
17 a
[0] = (a64
) b
[0] * c
[0];
18 a
[1] = (a64
) b
[1] * c
[1];