1; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 -mattr=+read-tp-hard %s -o - | FileCheck %s -check-prefix=CHECK-HARD 2; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 %s -o - | FileCheck %s -check-prefix=CHECK-SOFT 3 4 5; __thread int counter; 6; void foo() { 7; counter = 5; 8; } 9 10 11@counter = thread_local local_unnamed_addr global i32 0, align 4 12 13define void @foo() local_unnamed_addr #0 { 14entry: 15 store i32 5, i32* @counter, align 4 16 ret void 17} 18 19 20; CHECK-LABEL: foo: 21; CHECK-HARD: mrc p15, #0, {{r[0-9]+}}, c13, c0, #3 22; CHECK-SOFT: bl __aeabi_read_tp 23