1# RUN: llc %s -march=x86-64 -run-pass=machineverifier \
2# RUN:     -experimental-debug-variable-locations -o - 2>&1 | FileCheck %s
3#
4# REQUIRES: x86-registered-target
5#
6# CHECK:      debugValueSubstitutions:
7# CHECK-NEXT: - { srcinst: 1, srcop: 0, dstinst: 2, dstop: 0 }
8#
9# CHECK:      MOV64rr $rdi, debug-instr-number 2
10# CHECK-NEXT: DBG_INSTR_REF 1, 0
11---
12name: test
13tracksRegLiveness: true
14liveins:
15  - { reg: '$rdi', virtual-reg: '' }
16debugValueSubstitutions:
17  - { srcinst: 1, srcop: 0, dstinst: 2, dstop: 0 }
18body:  |
19  bb.0:
20  liveins: $rdi, $rax
21    $rbp = MOV64rr $rdi, debug-instr-number 2
22    DBG_INSTR_REF 1, 0
23    dead $rcx = MOV64ri 0
24    CMP64ri8 renamable $rax, 1, implicit-def $eflags
25    RETQ $rax
26...
27