diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2025-01-02 17:33:49 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2025-01-02 17:33:49 +0000 |
commit | 99d5ef700619c28904846399a6f6692af4c56b1b (patch) | |
tree | e045a4e9735c3b900b2f095acf247186ee7eba15 | |
parent | d3305dffd5e1d3a67ced55a178a7d1194aa1876a (diff) | |
download | gcc-99d5ef700619c28904846399a6f6692af4c56b1b.zip gcc-99d5ef700619c28904846399a6f6692af4c56b1b.tar.gz gcc-99d5ef700619c28904846399a6f6692af4c56b1b.tar.bz2 |
Use _Float128 in test for PR118184
The test was failing on x86 because longdouble128 only checks sizeof,
rather than a full 128-bit payload. Using _Float128 is more portable
and still exposes the original bug.
gcc/testsuite/
PR target/118184
* gcc.dg/torture/pr118184.c: Use _Float128 instead of long double.
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr118184.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr118184.c b/gcc/testsuite/gcc.dg/torture/pr118184.c index 20f567a..5933e2a 100644 --- a/gcc/testsuite/gcc.dg/torture/pr118184.c +++ b/gcc/testsuite/gcc.dg/torture/pr118184.c @@ -1,8 +1,8 @@ -/* { dg-do run { target { longdouble128 && lp64 } } } */ +/* { dg-do run { target { float128 && lp64 } } } */ union u1 { - long double ld; + _Float128 ld; unsigned long l[2]; }; @@ -13,7 +13,7 @@ unsigned long m() } [[gnu::noinline]] -long double f(void) +_Float128 f(void) { union u1 u; u.ld = __builtin_nanf128(""); |