diff options
author | Sean Perry <perry@ca.ibm.com> | 2025-06-26 15:21:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-26 15:21:04 -0400 |
commit | a0c5f1992d2188dd58987445aa00a55edad2357f (patch) | |
tree | f95c8b811dbeb1e8805b23eed0a279ea9e999565 /clang/lib/Basic | |
parent | 283c2e8d7c9fe6fbf78849dbd3bf715459e6d1bd (diff) | |
download | llvm-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.h | 4 |
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; } |