mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
744cc49078
Patch by Jyotsna Verma. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268051 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
735 B
LLVM
29 lines
735 B
LLVM
; RUN: llc -O0 -march=hexagon -relocation-model=static < %s | FileCheck %s
|
|
|
|
@dst_le = thread_local global i32 0, align 4
|
|
@src_le = thread_local global i32 0, align 4
|
|
|
|
; CHECK-LABEL: test_local_exec
|
|
; CHECK-DAG: = ##src_le@TPREL
|
|
; CHECK-DAG: = ##dst_le@TPREL
|
|
define i32 @test_local_exec() nounwind {
|
|
entry:
|
|
%0 = load i32, i32* @src_le, align 4
|
|
store i32 %0, i32* @dst_le, align 4
|
|
ret i32 0
|
|
}
|
|
|
|
@dst_ie = external thread_local global i32
|
|
@src_ie = external thread_local global i32
|
|
|
|
; CHECK-LABEL: test_initial_exec:
|
|
; CHECK-DAG: = memw(##src_ie@IE)
|
|
; CHECK-DAG: = memw(##dst_ie@IE)
|
|
define i32 @test_initial_exec() nounwind {
|
|
entry:
|
|
%0 = load i32, i32* @src_ie, align 4
|
|
store i32 %0, i32* @dst_ie, align 4
|
|
ret i32 0
|
|
}
|
|
|