2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / mips-div-1.c
blob6345000fe2c2e2cc208c42c763297341ea8df201
1 /* Check that hard-float MIPS code doesn't use library calls for 1.0/x. */
2 /* { dg-options "-fno-delayed-branch" } */
3 /* { dg-do compile { target mips*-*-* } } */
5 float f1 (float x) { return 1.0f / x; }
6 double f2 (double x) { return 1.0 / x; }
8 /* { dg-final { scan-assembler-not {lwc1.*__divsf3} } } */
9 /* { dg-final { scan-assembler-not {ldc1.*__divdf3} } } */