You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
This commit is contained in:
parent
d6bde52373
commit
8625704ad8
36
external/llvm/test/CodeGen/X86/xray-custom-log.ll
vendored
Normal file
36
external/llvm/test/CodeGen/X86/xray-custom-log.ll
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
; 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 -check-prefix=PIC
|
||||
|
||||
define i32 @fn() nounwind noinline uwtable "function-instrument"="xray-always" {
|
||||
%eventptr = alloca i8
|
||||
%eventsize = alloca i32
|
||||
store i32 3, i32* %eventsize
|
||||
%val = load i32, i32* %eventsize
|
||||
call void @llvm.xray.customevent(i8* %eventptr, i32 %val)
|
||||
; CHECK-LABEL: Lxray_event_sled_0:
|
||||
; CHECK: .byte 0xeb, 0x0f
|
||||
; CHECK-NEXT: pushq %rdi
|
||||
; CHECK-NEXT: movq {{.*}}, %rdi
|
||||
; CHECK-NEXT: pushq %rsi
|
||||
; CHECK-NEXT: movq {{.*}}, %rsi
|
||||
; CHECK-NEXT: callq __xray_CustomEvent
|
||||
; CHECK-NEXT: popq %rsi
|
||||
; CHECK-NEXT: popq %rdi
|
||||
|
||||
; PIC-LABEL: Lxray_event_sled_0:
|
||||
; PIC: .byte 0xeb, 0x0f
|
||||
; PIC-NEXT: pushq %rdi
|
||||
; PIC-NEXT: movq {{.*}}, %rdi
|
||||
; PIC-NEXT: pushq %rsi
|
||||
; PIC-NEXT: movq {{.*}}, %rsi
|
||||
; PIC-NEXT: callq __xray_CustomEvent@PLT
|
||||
; PIC-NEXT: popq %rsi
|
||||
; PIC-NEXT: popq %rdi
|
||||
ret i32 0
|
||||
}
|
||||
; CHECK-LABEL: xray_instr_map
|
||||
; CHECK-LABEL: Lxray_sleds_start0:
|
||||
; CHECK: .quad {{.*}}xray_event_sled_0
|
||||
|
||||
declare void @llvm.xray.customevent(i8*, i32)
|
Reference in New Issue
Block a user