diff --git a/libc/test/src/__support/FPUtil/fpbits_test.cpp b/libc/test/src/__support/FPUtil/fpbits_test.cpp index edb04c24ae387..6953d3aace58f 100644 --- a/libc/test/src/__support/FPUtil/fpbits_test.cpp +++ b/libc/test/src/__support/FPUtil/fpbits_test.cpp @@ -124,6 +124,7 @@ TEST(LlvmLibcFPBitsTest, FPType_IEEE754_Binary128) { UInt128(Rep::quiet_nan())); } +#ifdef LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80 TEST(LlvmLibcFPBitsTest, FPType_X86_Binary80) { using Rep = FPRep; @@ -269,6 +270,7 @@ TEST(LlvmLibcFPBitsTest, FPType_X86_Binary80_IsNan) { #error "unhandled long double type" #endif } +#endif // LIBC_TYPES_LONG_DOUBLE_IS_X86_FLOAT80 enum class FP { ZERO,