llvm-for-llvmta/test/CodeGen/Hexagon/initial-exec.ll

16 lines
382 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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
}