Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / mips / dspr2-MULTU.c
blob293e34feed2d16a1e51baa5633410b2843c5fd26
1 /* Test MIPS32 DSP REV 2 MULTU instruction. Tune for a CPU that has
2 pipelined multu. */
3 /* { dg-do compile } */
4 /* { dg-options "-mgp32 -mdspr2 -mtune=74kc" } */
5 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
7 /* See PR target/51729 for the reason behind the XFAILs. */
8 /* { dg-final { scan-assembler "\t(multu|muhu)\t" } } */
9 /* { dg-final { scan-assembler "\\\$ac1" { xfail *-*-* } } } */
10 /* { dg-final { scan-assembler "\\\$ac2" { xfail *-*-* } } } */
12 typedef unsigned long long a64;
14 NOMIPS16 a64 test (a64 *a, unsigned int *b, unsigned int *c)
16 a[0] = (a64) b[0] * c[0];
17 a[1] = (a64) b[1] * c[1];