mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
1f08944e95
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 llvm-svn: 292516
32 lines
892 B
LLVM
32 lines
892 B
LLVM
; RUN: llc -filetype=asm -o - -mtriple=armv7-unknown-linux-gnu < %s | FileCheck %s
|
|
; RUN: llc -filetype=asm -o - -mtriple=armv7-apple-ios6.0.0 < %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
|
|
}
|
|
; 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
|