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 {
9090 resetDataLayout (" E-m:l-p1:32:32-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-"
9191 " a:8:16-n32:64" );
9292 } else {
93+ // Support _Float16.
94+ HasFloat16 = true ;
9395 TLSSupported = true ;
9496 resetDataLayout (" E-m:e-i1:8:16-i8:8:16-i64:64-f128:64"
9597 " -v128:64-a:8:16-n32:64" );
@@ -103,8 +105,6 @@ class LLVM_LIBRARY_VISIBILITY SystemZTargetInfo : public TargetInfo {
103105 // and instead the backend will promote each half operation to float
104106 // individually.
105107 HasLegalHalfType = false ;
106- // Support _Float16.
107- HasFloat16 = true ;
108108
109109 HasStrictFP = true ;
110110 }
Original file line number Diff line number Diff line change 66// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
77// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE
88// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE
9+ // RUN: %clang_cc1 -fsyntax-only -verify -triple s390x-ibm-zos %s
910
1011#ifndef HAVE
1112// expected-error@+2{{_Float16 is not supported on this target}}
Original file line number Diff line number Diff line change 44// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
55// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
66// 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
88#ifdef HAVE
99// expected-no-diagnostics
1010#endif // HAVE
You can’t perform that action at this time.
0 commit comments