Skip to content

Commit 48b1755

Browse files
Add lit test
1 parent 2ed47e7 commit 48b1755

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
; RUN: llc -tls-load-hoist=true -stop-after=tlshoist < %s | FileCheck %s
2+
3+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
4+
target triple = "x86_64-unknown-linux-gnu"
5+
6+
@I58561 = external thread_local global ptr
7+
8+
define i32 @I59676() {
9+
entry:
10+
; CHECK: @I59676
11+
; CHECK-NOT: bitcast
12+
; CHECK: tail call ptr @llvm.threadlocal.address.p0(ptr @I58561)
13+
; CHECK-NEXT; tail call ptr @llvm.threadlocal.address.p0(ptr @I58561)
14+
%0 = tail call ptr @llvm.threadlocal.address.p0(ptr @I58561)
15+
%1 = tail call ptr @llvm.threadlocal.address.p0(ptr @I58561)
16+
ret i32 0
17+
}
18+
19+
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
20+
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #0
21+
22+
; uselistorder directives
23+
uselistorder ptr @llvm.threadlocal.address.p0, { 1, 0 }
24+
25+
attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

0 commit comments

Comments
 (0)