xref: /llvm-project/llvm/test/DebugInfo/MIR/InstrRef/instr-ref-roundtrip.mir (revision 40a4cbb0f200e5e0bafbd58d55c2da6daab9515d)
1# RUN: llc %s -mtriple=x86_64 -run-pass=machineverifier -o - -experimental-debug-variable-locations | FileCheck %s
2#
3# REQUIRES: x86-registered-target
4#
5# CHECK: debugInstrRef: true
6# CHECK: MOV64rr $rdi, debug-instr-number 1
7---
8name: test
9tracksRegLiveness: true
10debugInstrRef: true
11liveins:
12  - { reg: '$rdi', virtual-reg: '' }
13body:  |
14  bb.0:
15  liveins: $rdi, $rax
16    $rbp = MOV64rr $rdi, debug-instr-number 1
17    dead $rcx = MOV64ri 0
18    CMP64ri8 renamable $rax, 1, implicit-def $eflags
19    RET64 $rax
20...
21