]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: xfail float128 comparison test case that fails on powerpc64.
authorHaochen Gui <guihaoc@gcc.gnu.org>
Fri, 21 Apr 2023 08:42:31 +0000 (16:42 +0800)
committerHaochen Gui <guihaoc@gcc.gnu.org>
Fri, 21 Apr 2023 08:42:31 +0000 (16:42 +0800)
This patch xfails a float128 comparison test case on powerpc64 that
fails due to a longstanding issue with floating-point compares.

See PR58684 for more information.

When float128 hardware is enabled (-mfloat128-hardware), xscmpuqp is
generated for comparison which is unexpected.   When float128 software
emulation is enabled (-mno-float128-hardware), we still have to xfail
the hardware version (__lekf2_hw) which finally generates xscmpuqp.

gcc/testsuite/
PR target/108728
* gcc.dg/torture/float128-cmp-invalid.c: Add xfail.

gcc/testsuite/gcc.dg/torture/float128-cmp-invalid.c

index 1f675efdd6132a700ad651dbd3ab4ef8061dc9ce..a86592b332829777c840257953e4f8054dbadf5a 100644 (file)
@@ -1,5 +1,6 @@
 /* Test for "invalid" exceptions from __float128 comparisons.  */
 /* { dg-do run } */
+/* { dg-xfail-run-if "xfail for ppc float128_hw" { ppc_float128_hw || { ppc_cpu_supports_hw && p9vector_hw } } } */
 /* { dg-options "" } */
 /* { dg-require-effective-target __float128 } */
 /* { dg-require-effective-target base_quadfloat_support } */