File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo {
90
90
resetDataLayout (" E-m:l-p1:32:32-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-"
91
91
" a:8:16-n32:64" );
92
92
} else {
93
+ // Support _Float16.
94
+ HasFloat16 = true ;
93
95
TLSSupported = true ;
94
96
resetDataLayout (" E-m:e-i1:8:16-i8:8:16-i64:64-f128:64"
95
97
" -v128:64-a:8:16-n32:64" );
@@ -103,8 +105,6 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo {
103
105
// and instead the backend will promote each half operation to float
104
106
// individually.
105
107
HasLegalHalfType = false ;
106
- // Support _Float16.
107
- HasFloat16 = true ;
108
108
109
109
HasStrictFP = true ;
110
110
}
Original file line number Diff line number Diff line change 6
6
// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
7
7
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE
8
8
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE
9
+ // RUN: %clang_cc1 -fsyntax-only -verify -triple s390x-ibm-zos %s
9
10
10
11
#ifndef HAVE
11
12
// expected-error@+2{{_Float16 is not supported on this target}}
Original file line number Diff line number Diff line change 4
4
// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
5
5
// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
6
6
// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
7
-
7
+ // RUN: %clang_cc1 -fsyntax-only -verify -triple s390x-ibm-zos %s
8
8
#ifdef HAVE
9
9
// expected-no-diagnostics
10
10
#endif // HAVE
You can’t perform that action at this time.
0 commit comments