2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr53512-3.c
blob19e9ede8156b6125f3fdf31acf9fd42018b21bce
1 /* Verify that the fsrra insn is used when specifying -mfsrra and
2 -funsafe-math-optimizations and -ffinite-math-only. */
3 /* { dg-do compile { target { has_fsrra } } } */
4 /* { dg-options "-O1 -mfsrra -funsafe-math-optimizations -ffinite-math-only" } */
5 /* { dg-final { scan-assembler "fsrra" } } */
7 #include <math.h>
9 float
10 test_func_00 (float x)
12 return 1 / sqrtf (x);