aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorSean Perry <perry@ca.ibm.com>2025-06-26 15:21:04 -0400
committerGitHub <noreply@github.com>2025-06-26 15:21:04 -0400
commita0c5f1992d2188dd58987445aa00a55edad2357f (patch)
treef95c8b811dbeb1e8805b23eed0a279ea9e999565 /clang/lib/Basic
parent283c2e8d7c9fe6fbf78849dbd3bf715459e6d1bd (diff)
downloadllvm-a0c5f1992d2188dd58987445aa00a55edad2357f.zip
llvm-a0c5f1992d2188dd58987445aa00a55edad2357f.tar.gz
llvm-a0c5f1992d2188dd58987445aa00a55edad2357f.tar.bz2
[SystemZ][zOS] disable _Float16 support on z/OS (#145532)
The new half float type (aka _Float16 ) isn't supported on z/OS.
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets/SystemZ.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets/SystemZ.h b/clang/lib/Basic/Targets/SystemZ.h
index 1af6122..7f7dcf8 100644
--- a/clang/lib/Basic/Targets/SystemZ.h
+++ b/clang/lib/Basic/Targets/SystemZ.h
@@ -90,6 +90,8 @@ public:
resetDataLayout("E-m:l-p1:32:32-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-"
"a:8:16-n32:64");
} else {
+ // Support _Float16.
+ HasFloat16 = true;
TLSSupported = true;
resetDataLayout("E-m:e-i1:8:16-i8:8:16-i64:64-f128:64"
"-v128:64-a:8:16-n32:64");
@@ -103,8 +105,6 @@ public:
// and instead the backend will promote each half operation to float
// individually.
HasLegalHalfType = false;
- // Support _Float16.
- HasFloat16 = true;
HasStrictFP = true;
}