1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/CodeGen/ARM/readtp.ll
Chad Rosier 1ca614cedd Add newline to end of test file. NFC.
llvm-svn: 313263
2017-09-14 14:48:59 +00:00

23 lines
556 B
LLVM

; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 -mattr=+read-tp-hard %s -o - | FileCheck %s -check-prefix=CHECK-HARD
; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 %s -o - | FileCheck %s -check-prefix=CHECK-SOFT
; __thread int counter;
; void foo() {
; counter = 5;
; }
@counter = thread_local local_unnamed_addr global i32 0, align 4
define void @foo() local_unnamed_addr #0 {
entry:
store i32 5, i32* @counter, align 4
ret void
}
; CHECK-LABEL: foo:
; CHECK-HARD: mrc p15, #0, {{r[0-9]+}}, c13, c0, #3
; CHECK-SOFT: bl __aeabi_read_tp