23 lines · plain
1# Check that the backend properly tracks debug-instr-references across the2# copy-physregs pass.3#4# RUN: llc %s -mtriple=s390x-linux-gnu -run-pass=systemz-copy-physregs \5# RUN: -o - 2>&1 | FileCheck %s6 7# COPY 1: Copy VirtReg to AR8# COPY 2: Copy AR to VirtReg9# COPY 3: Copy CC to VirtReg10# CHECK: name: foo11# CHECK: debugValueSubstitutions:12# these are the correct substitutions13# CHECK-NEXT: - { srcinst: 1, srcop: 0, dstinst: 4, dstop: 0, subreg: 0 }14# we also need to make sure that these are the only substitutions15# CHECK-NEXT: constants: []16name: foo17body: |18 bb.0:19 liveins: $a120 COPY def $a1, %1:gr32bit, debug-instr-number 121 COPY def %2:gr32bit, $a1, debug-instr-number 222 COPY def %3:gr32bit, $cc, debug-instr-number 323