summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
blob: f514f17d127d096d262afd4547e5401bed6d4b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
; CHECK:       .p2align 1, 0x90
; CHECK-LABEL: Lxray_sled_0:
; 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-NEXT:  retq
; CHECK-NEXT:  nopw %cs:512(%rax,%rax)
}
OpenPOWER on IntegriCloud