brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · dedd16c Raw
31 lines · plain
1; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 -mattr=+read-tp-tpidrurw %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRURW2; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 -mattr=+read-tp-tpidruro %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRURO3; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 -mattr=+read-tp-tpidrprw %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRPRW4; RUN: llc -mtriple=armeb-linux-gnueabihf -O2 %s -o - | FileCheck %s -check-prefix=CHECK-SOFT5; RUN: llc -mtriple=thumbv7-linux-gnueabihf -O2 -mattr=+read-tp-tpidrurw %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRURW6; RUN: llc -mtriple=thumbv7-linux-gnueabihf -O2 -mattr=+read-tp-tpidruro %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRURO7; RUN: llc -mtriple=thumbv7-linux-gnueabihf -O2 -mattr=+read-tp-tpidrprw %s -o - | FileCheck %s -check-prefix=CHECK-TPIDRPRW8; RUN: llc -mtriple=thumbv7-linux-gnueabihf -O2 %s -o - | FileCheck %s -check-prefix=CHECK-SOFT9 10 11; __thread int counter;12;  void foo() {13;    counter = 5;14;  }15 16 17@counter = thread_local local_unnamed_addr global i32 0, align 418 19define void @foo() local_unnamed_addr #0 {20entry:21  store i32 5, ptr @counter, align 422  ret void23}24 25 26; CHECK-LABEL: foo:27; CHECK-TPIDRURW:     mrc	p15, #0, {{r[0-9]+}}, c13, c0, #228; CHECK-TPIDRURO:     mrc	p15, #0, {{r[0-9]+}}, c13, c0, #329; CHECK-TPIDRPRW:     mrc	p15, #0, {{r[0-9]+}}, c13, c0, #430; CHECK-SOFT:         bl	__aeabi_read_tp31