mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
48a9603fbc
Introduce a fatal error if any thread local storage code is compiled using pc relative memory operations as well as a hidden override option `-enable-ppc-pcrel-tls` so that this support can be incrementally added if possible. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D85448
17 lines
598 B
LLVM
17 lines
598 B
LLVM
; RUN: not --crash llc -mcpu=pwr10 -mtriple=powerpc64le-unknown-linux-gnu \
|
|
; RUN: -verify-machineinstrs -mattr=+pcrelative-memops -o - < %s 2>&1 | \
|
|
; RUN: FileCheck %s --check-prefix=CHECK-PCREL
|
|
; RUN: llc -mcpu=pwr10 -mtriple=powerpc64le-unknown-linux-gnu \
|
|
; RUN: -verify-machineinstrs -mattr=-pcrelative-memops -o - < %s 2>&1 | \
|
|
; RUN: FileCheck %s --check-prefix=CHECK-NOPCREL
|
|
|
|
; CHECK-PCREL: Thread local storage is not supported with pc-relative addressing
|
|
; CHECK-NOPCREL: blr
|
|
|
|
@x = external thread_local global i32, align 4
|
|
|
|
define i32* @testTLS() {
|
|
entry:
|
|
ret i32* @x
|
|
}
|