Commit c52d437224

Andrew Kelley <andrew@ziglang.org>
2022-03-07 00:04:02
stage1: improved implementation of target_long_double_is_f128
1 parent c68d977
Changed files (1)
src
stage1
src/stage1/target.cpp
@@ -1004,6 +1004,9 @@ bool target_has_debug_info(const ZigTarget *target) {
 }
 
 bool target_long_double_is_f128(const ZigTarget *target) {
+    if (target->abi == ZigLLVM_MSVC) {
+        return false;
+    }
     switch (target->arch) {
         case ZigLLVM_riscv64:
         case ZigLLVM_aarch64:
@@ -1012,6 +1015,13 @@ bool target_long_double_is_f128(const ZigTarget *target) {
         case ZigLLVM_systemz:
         case ZigLLVM_mips64:
         case ZigLLVM_mips64el:
+        case ZigLLVM_sparc:
+        case ZigLLVM_sparcv9:
+        case ZigLLVM_sparcel:
+        case ZigLLVM_ppc:
+        case ZigLLVM_ppcle:
+        case ZigLLVM_ppc64:
+        case ZigLLVM_ppc64le:
             return true;
 
         default: