llvm/llvm/test/DebugInfo/MIR/InstrRef/instr-ref-roundtrip.mir

# RUN: llc %s -march=x86-64 -run-pass=machineverifier -o - -experimental-debug-variable-locations | FileCheck %s
#
# REQUIRES: x86-registered-target
#
# CHECK: debugInstrRef: true
# CHECK: MOV64rr $rdi, debug-instr-number 1
---
name: test
tracksRegLiveness: true
debugInstrRef: true
liveins:
  - { reg: '$rdi', virtual-reg: '' }
body:  |
  bb.0:
  liveins: $rdi, $rax
    $rbp = MOV64rr $rdi, debug-instr-number 1
    dead $rcx = MOV64ri 0
    CMP64ri8 renamable $rax, 1, implicit-def $eflags
    RET64 $rax
...