testsuite: Add testcases for PR92449
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 12 Nov 2019 21:05:24 +0000 (22:05 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 12 Nov 2019 21:05:24 +0000 (22:05 +0100)
PR target/92449
* gcc.c-torture/compile/pr92449.c: New test.
* gcc.target/powerpc/pr92449-1.c: New test.

From-SVN: r278104

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr92449.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr92449-1.c [new file with mode: 0644]

index 3ee50a6eaec05fa32e157f214e18eaca392f339d..557209336fffafd0e376417783c9e736aa09c412 100644 (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
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr92449.c b/gcc/testsuite/gcc.c-torture/compile/pr92449.c
new file mode 100644 (file)
index 0000000..74e7377
--- /dev/null
@@ -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 (file)
index 0000000..f9fcb84
--- /dev/null
@@ -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);
+}