summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-09-19 00:54:35 +0000
committerDean Michael Berris <dberris@google.com>2016-09-19 00:54:35 +0000
commit916b3667a34d0cd789a553ce3e54697fa8558468 (patch)
treea7645566b149dd2239e6d149103277008ca48251 /test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
parent70b43c34b6b322d34693f475811a9463c86a3dce (diff)
[XRay] ARM 32-bit no-Thumb support in LLVM
This is a port of XRay to ARM 32-bit, without Thumb support yet. The XRay instrumentation support is moving up to AsmPrinter. This is one of 3 commits to different repositories of XRay ARM port. The other 2 are: https://reviews.llvm.org/D23932 (Clang test) https://reviews.llvm.org/D23933 (compiler-rt) Differential Revision: https://reviews.llvm.org/D23931 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281878 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll')
-rw-r--r--test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll b/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
new file mode 100644
index 00000000000..842d9bc2a56
--- /dev/null
+++ b/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
@@ -0,0 +1,24 @@
+; RUN: llc -filetype=asm -o - -mtriple=armv7-unknown-linux-gnu < %s | FileCheck %s
+
+define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
+; CHECK-LABEL: Lxray_sled_0:
+; CHECK-NEXT: b #20
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-LABEL: Ltmp0:
+ ret i32 0
+; CHECK-LABEL: Lxray_sled_1:
+; CHECK-NEXT: b #20
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-NEXT: nop
+; CHECK-LABEL: Ltmp1:
+; CHECK-NEXT: bx lr
+}