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:
Segher Boessenkool 2019-11-12 22:05:24 +01:00 committed by Segher Boessenkool
parent 5fba7efc6c
commit fc5cf4e0f5
3 changed files with 20 additions and 0 deletions

View file

@ -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

View 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);
}

View 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);
}