From: Segher Boessenkool Date: Tue, 12 Nov 2019 21:05:24 +0000 (+0100) Subject: testsuite: Add testcases for PR92449 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc5cf4e0f51c071aad8d182c1511801ad5945e60;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ee50a6eaec..557209336ff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-11-12 Segher Boessenkool + + PR target/92449 + * gcc.c-torture/compile/pr92449.c: New test. + * gcc.target/powerpc/pr92449-1.c: New test. + 2019-11-12 Tobias Burnus PR fortran/92470 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr92449.c b/gcc/testsuite/gcc.c-torture/compile/pr92449.c new file mode 100644 index 00000000000..74e73772720 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr92449.c @@ -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); +} diff --git a/gcc/testsuite/gcc.target/powerpc/pr92449-1.c b/gcc/testsuite/gcc.target/powerpc/pr92449-1.c new file mode 100644 index 00000000000..f9fcb8433dc --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr92449-1.c @@ -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); +}