Skip to content

Commit 37e734c

Browse files
committed
integrate with existing test instead
1 parent 1894bcc commit 37e734c

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

llvm/test/CodeGen/WebAssembly/strip-tls.ll

Lines changed: 0 additions & 28 deletions
This file was deleted.

llvm/test/CodeGen/WebAssembly/target-features-tls.ll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ target triple = "wasm32-unknown-unknown"
88

99
@foo = internal thread_local global i32 0
1010

11+
define i32 @func() {
12+
%p = call ptr @llvm.threadlocal.address.p0(ptr @foo)
13+
%v = load i32, ptr %p
14+
ret i32 %v
15+
}
16+
1117
; -bulk-memory
1218
; NO-BULK-MEM-LABEL: .custom_section.target_features,"",@
1319
; NO-BULK-MEM-NEXT: .int8 2

0 commit comments

Comments
 (0)