Matthias Braun | d2fc0d4 | 2016-10-03 21:58:20 +0000 | [diff] [blame] | 1 | ; RUN: llc -O0 -mtriple=hexagon-- -relocation-model=static < %s | FileCheck %s |
Krzysztof Parzyszek | 7a737d1 | 2016-02-18 15:42:57 +0000 | [diff] [blame] | 2 | |
| 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 Parzyszek | 64e5d7d | 2017-10-20 19:33:12 +0000 | [diff] [blame] | 7 | ; CHECK-DAG: ##src_le@TPREL |
| 8 | ; CHECK-DAG: ##dst_le@TPREL |
Krzysztof Parzyszek | 7a737d1 | 2016-02-18 15:42:57 +0000 | [diff] [blame] | 9 | define i32 @test_local_exec() nounwind { |
| 10 | entry: |
| 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) |
| 22 | define i32 @test_initial_exec() nounwind { |
| 23 | entry: |
| 24 | %0 = load i32, i32* @src_ie, align 4 |
| 25 | store i32 %0, i32* @dst_ie, align 4 |
| 26 | ret i32 0 |
| 27 | } |
| 28 | |