summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
diff options
context:
space:
mode:
authorSerge Rogatch <srogatch@accesssoftek.com>2017-01-19 20:24:23 +0000
committerSerge Rogatch <srogatch@accesssoftek.com>2017-01-19 20:24:23 +0000
commit9a63b871bd87eef8eca931cd60879509ec0cc55b (patch)
tree54d345f729db41728630ac93cff93ccc195bb788 /test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
parentb1330a5678b050e8c8c1c7afa04488a2d1906829 (diff)
[XRay][Arm] Repair XRay table emission on Arm32 and add tests to identify such problem earlier
Summary: Emission of XRay table was occasionally disabled for Arm32, but this bug was not then detected because earlier (also by mistake) testing of XRay was occasionally disabled on 32-bit Arm targets. This patch should fix that problem and detect such problems in the future. This patch is one of a series, see also - https://reviews.llvm.org/D28623 Reviewers: rengolin, dberris Reviewed By: dberris Subscribers: llvm-commits, aemerson, rengolin, dberris, iid_iunknown Differential Revision: https://reviews.llvm.org/D28624 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292516 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.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll b/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
index 07852cd6879..d14590b8867 100644
--- a/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
+++ b/test/CodeGen/ARM/xray-armv7-attribute-instrumentation.ll
@@ -23,3 +23,9 @@ define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always"
; CHECK-LABEL: Ltmp1:
; CHECK-NEXT: bx lr
}
+; CHECK: .p2align 4
+; CHECK-NEXT: .long {{.*}}Lxray_synthetic_0
+; CHECK-NEXT: .section {{.*}}xray_instr_map{{.*}}
+; CHECK-LABEL: Lxray_synthetic_0:
+; CHECK: .long {{.*}}Lxray_sled_0
+; CHECK: .long {{.*}}Lxray_sled_1