xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -filetype=asm -o - -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
2
3define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
4; CHECK-LABEL: Lxray_sled_0:
5; CHECK-NEXT:  .p2align 2, 0x90
6; CHECK-NEXT:  .ascii "\353\t"
7; CHECK-NEXT:  nopw 512(%rax,%rax)
8; CHECK-LABEL: Ltmp0:
9  ret i32 0
10; CHECK-LABEL: Lxray_sled_1:
11; CHECK-NEXT:  retq
12; CHECK-NEXT:  nopw %cs:512(%rax,%rax)
13}
14