Add test-case.
gcc/testsuite/ChangeLog: PR target/97510 * gcc.target/i386/pr97510.c: New test.
This commit is contained in:
parent
709718d4d8
commit
db53dd4f78
1 changed files with 18 additions and 0 deletions
18
gcc/testsuite/gcc.target/i386/pr97510.c
Normal file
18
gcc/testsuite/gcc.target/i386/pr97510.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* PR target/97510 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Os -fexcess-precision=standard -mfpmath=387 -funsafe-math-optimizations" } */
|
||||
|
||||
float compute_rsqrt_ref_r_0;
|
||||
|
||||
__attribute__((optimize(1)))
|
||||
void compute_rsqrt_ref() {
|
||||
compute_rsqrt_ref_r_0 = 1.0 / 0.0;
|
||||
}
|
||||
|
||||
int icompute_rsqrt_ref(float *);
|
||||
|
||||
void test_512() {
|
||||
float in[0];
|
||||
for (int i;;)
|
||||
in[i] = 8.6756 * icompute_rsqrt_ref(in);
|
||||
}
|
Loading…
Add table
Reference in a new issue