source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/tls1.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 442 bytes
Line 
1; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s
2; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi -relocation-model=pic | \
3; RUN:   FileCheck %s --check-prefix=PIC
4
5
6; CHECK: i(TPOFF)
7; CHECK: __aeabi_read_tp
8
9; PIC: __tls_get_addr
10
11@i = thread_local global i32 15         ; <i32*> [#uses=2]
12
13define i32 @f() {
14entry:
15        %tmp1 = load i32, i32* @i               ; <i32> [#uses=1]
16        ret i32 %tmp1
17}
18
19define i32* @g() {
20entry:
21        ret i32* @i
22}
Note: See TracBrowser for help on using the repository browser.