lewis-revill updated this revision to Diff 185283. lewis-revill added a comment. Herald added a project: clang.
Added RISC-V to thread specifier test as a means of checking TLS is supported. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57055/new/ https://reviews.llvm.org/D57055 Files: lib/Basic/Targets/RISCV.h test/CodeGen/thread-specifier.c Index: test/CodeGen/thread-specifier.c =================================================================== --- test/CodeGen/thread-specifier.c +++ test/CodeGen/thread-specifier.c @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s // CHECK: @b = external thread_local global // CHECK: @d.e = internal thread_local global Index: lib/Basic/Targets/RISCV.h =================================================================== --- lib/Basic/Targets/RISCV.h +++ lib/Basic/Targets/RISCV.h @@ -35,7 +35,6 @@ RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &) : TargetInfo(Triple), HasM(false), HasA(false), HasF(false), HasD(false), HasC(false) { - TLSSupported = false; LongDoubleWidth = 128; LongDoubleAlign = 128; LongDoubleFormat = &llvm::APFloat::IEEEquad();
Index: test/CodeGen/thread-specifier.c =================================================================== --- test/CodeGen/thread-specifier.c +++ test/CodeGen/thread-specifier.c @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s // CHECK: @b = external thread_local global // CHECK: @d.e = internal thread_local global Index: lib/Basic/Targets/RISCV.h =================================================================== --- lib/Basic/Targets/RISCV.h +++ lib/Basic/Targets/RISCV.h @@ -35,7 +35,6 @@ RISCVTargetInfo(const llvm::Triple &Triple, const TargetOptions &) : TargetInfo(Triple), HasM(false), HasA(false), HasF(false), HasD(false), HasC(false) { - TLSSupported = false; LongDoubleWidth = 128; LongDoubleAlign = 128; LongDoubleFormat = &llvm::APFloat::IEEEquad();
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits