summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-08-31 15:17:17 +0000
committerDaniel Jasper <djasper@google.com>2017-08-31 15:17:17 +0000
commitc0a976d417917211e361cdd2a582bd12a286fbd7 (patch)
tree6713756b9144484319ab25d96c9902505f247fde /llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
parent8870a14e4e54266478effdb2af5172d6affa39c1 (diff)
downloadbcm5719-llvm-c0a976d417917211e361cdd2a582bd12a286fbd7.tar.gz
bcm5719-llvm-c0a976d417917211e361cdd2a582bd12a286fbd7.zip
Revert r311525: "[XRay][CodeGen] Use PIC-friendly code in XRay sleds; remove synthetic references in .text"
Breaks builds internally. Will forward repo instructions to author. llvm-svn: 312243
Diffstat (limited to 'llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll')
-rw-r--r--llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll28
1 files changed, 17 insertions, 11 deletions
diff --git a/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll b/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
index 7fa2c0e1180..00b45f8d95b 100644
--- a/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
+++ b/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
@@ -1,25 +1,27 @@
; RUN: llc -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
-; RUN: llc -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu \
-; RUN: -relocation-model=pic < %s | FileCheck %s
; RUN: llc -filetype=asm -o - -mtriple=x86_64-darwin-unknown < %s | FileCheck %s
define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
; CHECK: .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_0:
-; CHECK: .ascii "\353\t"
+; CHECK-NEXT: .ascii "\353\t"
; CHECK-NEXT: nopw 512(%rax,%rax)
+; CHECK-LABEL: Ltmp0:
ret i32 0
; CHECK: .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_1:
-; CHECK: retq
+; CHECK-NEXT: retq
; CHECK-NEXT: nopw %cs:512(%rax,%rax)
}
-; CHECK-LABEL: xray_instr_map
+; CHECK: .p2align 4, 0x90
+; CHECK-NEXT: .quad {{.*}}xray_fn_idx_synth_0
+; CHECK-NEXT: .section {{.*}}xray_instr_map
; CHECK-LABEL: Lxray_sleds_start0:
; CHECK: .quad {{.*}}xray_sled_0
; CHECK: .quad {{.*}}xray_sled_1
; CHECK-LABEL: Lxray_sleds_end0:
-; CHECK-LABEL: xray_fn_idx
+; CHECK: .section {{.*}}xray_fn_idx
+; CHECK-LABEL: Lxray_fn_idx_synth_0:
; CHECK: .quad {{.*}}xray_sleds_start0
; CHECK-NEXT: .quad {{.*}}xray_sleds_end0
@@ -29,8 +31,9 @@ define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always"
define i32 @bar(i32 %i) nounwind noinline uwtable "function-instrument"="xray-always" {
; CHECK: .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_2:
-; CHECK: .ascii "\353\t"
+; CHECK-NEXT: .ascii "\353\t"
; CHECK-NEXT: nopw 512(%rax,%rax)
+; CHECK-LABEL: Ltmp1:
Test:
%cond = icmp eq i32 %i, 0
br i1 %cond, label %IsEqual, label %NotEqual
@@ -38,21 +41,24 @@ IsEqual:
ret i32 0
; CHECK: .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_3:
-; CHECK: retq
+; CHECK-NEXT: retq
; CHECK-NEXT: nopw %cs:512(%rax,%rax)
NotEqual:
ret i32 1
; CHECK: .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_4:
-; CHECK: retq
+; CHECK-NEXT: retq
; CHECK-NEXT: nopw %cs:512(%rax,%rax)
}
-; CHECK-LABEL: xray_instr_map
+; CHECK: .p2align 4, 0x90
+; CHECK-NEXT: .quad {{.*}}xray_fn_idx_synth_1
+; CHECK-NEXT: .section {{.*}}xray_instr_map
; CHECK-LABEL: Lxray_sleds_start1:
; CHECK: .quad {{.*}}xray_sled_2
; CHECK: .quad {{.*}}xray_sled_3
; CHECK: .quad {{.*}}xray_sled_4
; CHECK-LABEL: Lxray_sleds_end1:
-; CHECK-LABEL: xray_fn_idx
+; CHECK: .section {{.*}}xray_fn_idx
+; CHECK-LABEL: Lxray_fn_idx_synth_1:
; CHECK: .quad {{.*}}xray_sleds_start1
; CHECK-NEXT: .quad {{.*}}xray_sleds_end1
OpenPOWER on IntegriCloud