llvm/test/CodeGen/Hexagon/initial-exec.ll
Krzysztof Parzyszek c9946711ce [Hexagon] Add more lit tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327271 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-12 14:01:28 +00:00

16 lines
382 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
target triple = "hexagon-unknown--elf"
@g0 = external thread_local(initialexec) global i32
@g1 = external thread_local(initialexec) global i32
; CHECK-DAG: r{{[0-9]+}} = memw(##g0@IE)
; CHECK-DAG: r{{[0-9]+}} = memw(##g1@IE)
define i32 @f0() {
b0:
%v0 = load i32, i32* @g1, align 4
store i32 %v0, i32* @g0, align 4
ret i32 0
}