brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 9bd6ab0 Raw
43 lines · plain
1# RUN: llc -mtriple=x86_64-apple-darwin -stop-after branch-folder -start-after branch-folder -o - %s | FileCheck %s2# This test verifies that the machine verifier won't report an error when3# verifying the PATCHPOINT instruction.4 5--- |6 7  define void @small_patchpoint_codegen(i64 %p1, i64 %p2, i64 %p3, i64 %p4) {8  entry:9    %result = tail call i64 (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.i64(i64 5, i32 5, ptr null, i32 2, i64 %p1, i64 %p2)10    ret void11  }12 13  declare i64 @llvm.experimental.patchpoint.i64(i64, i32, ptr, i32, ...)14 15...16---17name:            small_patchpoint_codegen18tracksRegLiveness: true19liveins:20  - { reg: '$rdi' }21  - { reg: '$rsi' }22frameInfo:23  hasPatchPoint: true24  stackSize:     825  adjustsStack:  true26  hasCalls:      true27fixedStack:28  - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16 }29body: |30  bb.0.entry:31    liveins: $rdi, $rsi, $rbp32 33    frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp34    CFI_INSTRUCTION def_cfa_offset 1635    CFI_INSTRUCTION offset $rbp, -1636    $rbp = frame-setup MOV64rr $rsp37    CFI_INSTRUCTION def_cfa_register $rbp38  ; CHECK: PATCHPOINT 5, 5, 0, 2, 0, $rdi, $rsi, csr_64, implicit-def dead early-clobber $r11, implicit-def $rsp, implicit-def dead $rax39    PATCHPOINT 5, 5, 0, 2, 0, $rdi, $rsi, csr_64, implicit-def dead early-clobber $r11, implicit-def $rsp, implicit-def dead $rax40    $rbp = POP64r implicit-def $rsp, implicit $rsp41    RET6442...43