Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / mips / mult-1.c
blobbd9757cc0ed2043be154fcc3e4b7377abd942081
1 /* For SI->DI widening multiplication we should use DINS to combine the two
2 halves. For Octeon use DMUL with explicit widening. */
3 /* This test requires widening_mul */
4 /* { dg-options "-mgp64 (HAS_INS) (NOT_HAS_DMUL) -fexpensive-optimizations" } */
5 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
6 /* { dg-final { scan-assembler "\tdins\t" } } */
7 /* { dg-final { scan-assembler-not "\tdsll\t" } } */
8 /* { dg-final { scan-assembler-not "\tdsrl\t" } } */
9 /* { dg-final { scan-assembler-not "\tor\t" } } */
11 NOMIPS16 unsigned long long
12 f (unsigned int i, unsigned int j)
14 i++;
15 return (unsigned long long) i * j;