blob: f4e882b4ff28575d8c2651dab2e3245c6c161d36 [file] [log] [blame]
Matthias Braund2fc0d42016-10-03 21:58:20 +00001; RUN: llc -O0 -mtriple=hexagon-- -relocation-model=static < %s | FileCheck %s
Krzysztof Parzyszek7a737d12016-02-18 15:42:57 +00002
3@dst_le = thread_local global i32 0, align 4
4@src_le = thread_local global i32 0, align 4
5
6; CHECK-LABEL: test_local_exec
Krzysztof Parzyszek64e5d7d2017-10-20 19:33:12 +00007; CHECK-DAG: ##src_le@TPREL
8; CHECK-DAG: ##dst_le@TPREL
Krzysztof Parzyszek7a737d12016-02-18 15:42:57 +00009define i32 @test_local_exec() nounwind {
10entry:
11 %0 = load i32, i32* @src_le, align 4
12 store i32 %0, i32* @dst_le, align 4
13 ret i32 0
14}
15
16@dst_ie = external thread_local global i32
17@src_ie = external thread_local global i32
18
19; CHECK-LABEL: test_initial_exec:
20; CHECK-DAG: = memw(##src_ie@IE)
21; CHECK-DAG: = memw(##dst_ie@IE)
22define i32 @test_initial_exec() nounwind {
23entry:
24 %0 = load i32, i32* @src_ie, align 4
25 store i32 %0, i32* @dst_ie, align 4
26 ret i32 0
27}
28