2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msub-5.c
blobdcb124a71983cca773408d2f3818754b83c6eab3
1 /* { dg-options "-O2 -march=5kc" } */
2 /* { dg-final { scan-assembler-times "\tmsub\t" 4 } } */
3 /* { dg-final { scan-assembler-not "\tmtlo\t" } } */
4 /* { dg-final { scan-assembler-times "\tmflo\t" 3 } } */
6 NOMIPS16 void f1 (int *a) { a[0] = a[0] * a[1] - a[2] * a[3]; }
7 NOMIPS16 void f2 (int *a) { a[0] = a[0] * a[1] - a[2] * a[3] - a[4]; }
8 NOMIPS16 void f3 (int *a) { a[0] = a[0] * a[1] - a[2] * a[3] - a[4] * a[5]; }