Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / Thumb2 / tls1.ll
blob8755f575173b7044f60cc15134d4c04f502c6c00
1 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
2 ; RUN:     grep "i(TPOFF)"
3 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | \
4 ; RUN:     grep "__aeabi_read_tp"
5 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi \
6 ; RUN:     -relocation-model=pic | grep "__tls_get_addr"
9 @i = dso_local thread_local global i32 15               ; <ptr> [#uses=2]
11 define dso_local i32 @f() {
12 entry:
13         %tmp1 = load i32, ptr @i                ; <i32> [#uses=1]
14         ret i32 %tmp1
17 define dso_local ptr @g() {
18 entry:
19         ret ptr @i