Skip to content

Commit 6aa7403

Browse files
[libc] Fix fpbits test running 80bit ld everywhere (#115937)
After #115084 the 80 bit long double tests error if sizeof(long double) isn't 96 or 128 bits. This caused failures in long double is double systems (since long double is 64 bits) so I've disabled the 80 bit long double tests on systems that don't use them.
1 parent 014455a commit 6aa7403

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/test/src/__support/FPUtil/fpbits_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ TEST(LlvmLibcFPBitsTest, FPType_IEEE754_Binary128) {
124124
UInt128(Rep::quiet_nan()));
125125
}
126126

127+
#ifdef LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80
127128
TEST(LlvmLibcFPBitsTest, FPType_X86_Binary80) {
128129
using Rep = FPRep<FPType::X86_Binary80>;
129130

@@ -269,6 +270,7 @@ TEST(LlvmLibcFPBitsTest, FPType_X86_Binary80_IsNan) {
269270
#error "unhandled long double type"
270271
#endif
271272
}
273+
#endif // LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80
272274

273275
enum class FP {
274276
ZERO,

0 commit comments

Comments
 (0)