testsuite: Add testcases for PR92449
PR target/92449 * gcc.c-torture/compile/pr92449.c: New test. * gcc.target/powerpc/pr92449-1.c: New test. From-SVN: r278104
This commit is contained in:
parent
5fba7efc6c
commit
fc5cf4e0f5
3 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
|
||||
|
||||
PR target/92449
|
||||
* gcc.c-torture/compile/pr92449.c: New test.
|
||||
* gcc.target/powerpc/pr92449-1.c: New test.
|
||||
|
||||
2019-11-12 Tobias Burnus <tobias@codesourcery.com>
|
||||
|
||||
PR fortran/92470
|
||||
|
|
7
gcc/testsuite/gcc.c-torture/compile/pr92449.c
Normal file
7
gcc/testsuite/gcc.c-torture/compile/pr92449.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* PR target/92449 */
|
||||
/* { dg-additional-options "-ffast-math -fno-cx-limited-range" } */
|
||||
|
||||
void do_div (_Complex double *a, _Complex double *b)
|
||||
{
|
||||
*a = *b / (4.0 - 5.0fi);
|
||||
}
|
7
gcc/testsuite/gcc.target/powerpc/pr92449-1.c
Normal file
7
gcc/testsuite/gcc.target/powerpc/pr92449-1.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* { dg-options "-Ofast -mdejagnu-cpu=power9 " } */
|
||||
|
||||
int
|
||||
compare_exponents_unordered (double exponent1, double exponent2)
|
||||
{
|
||||
return __builtin_vec_scalar_cmp_exp_unordered (exponent1, exponent2);
|
||||
}
|
Loading…
Add table
Reference in a new issue