llvm-project/llvm/test/CodeGen/X86/fast-isel-tls.ll
Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
Test updates were performed using:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only the test updates where the test passed without
further modification (which is almost all of them, as the backend
is largely pointer-type agnostic).
2022-06-22 14:38:25 +02:00

27 lines
552 B
LLVM

; RUN: llc < %s -relocation-model=pic -mtriple=i686-unknown-linux-gnu -fast-isel | FileCheck %s
; PR3654
@v = thread_local global i32 0
define i32 @f() nounwind {
entry:
%t = load i32, ptr @v
%s = add i32 %t, 1
ret i32 %s
}
; CHECK-LABEL: f:
; CHECK: leal v@TLSGD
; CHECK: __tls_get_addr
@alias = internal alias i32, ptr @v
define i32 @f_alias() nounwind {
entry:
%t = load i32, ptr @v
%s = add i32 %t, 1
ret i32 %s
}
; CHECK-LABEL: f_alias:
; CHECK: leal v@TLSGD
; CHECK: __tls_get_addr