; 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
; 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

Add newline to end of test file. NFC.
Add newline to end of test file. NFC.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@313263 91177308-0d34-0410-b5e6-96231b3b80d8
