brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · a0bb2c1 Raw
25 lines · plain
1# Check that the backend properly tracks debug-instr-references across the2# post-rewrite pass.3#4# RUN: llc %s -mtriple=s390x-linux-gnu -run-pass=systemz-post-rewrite \5# RUN:   -o - 2>&1 | FileCheck %s6 7# SELRMux 1: simple replace with copy8# SELRMux 2: simple mutation into selfhr9# SELRMux 3: replace with if-then-else without prior copy10# SELRMux 4: replace with if-then-else with prior copy11# CHECK: name:            foo12# CHECK: debugValueSubstitutions:13# CHECK-NEXT:  - { srcinst: 1, srcop: 0, dstinst: 5, dstop: 0, subreg: 0 }14# CHECK-NEXT:  - { srcinst: 3, srcop: 0, dstinst: 6, dstop: 0, subreg: 0 }15# CHECK-NEXT:  - { srcinst: 4, srcop: 0, dstinst: 7, dstop: 0, subreg: 0 }16# CHECK-NEXT:  - { srcinst: 4, srcop: 0, dstinst: 8, dstop: 0, subreg: 0 }17name: foo18body:               |19  bb.0:20    liveins: $r2h, $r3h, $r2l, $r3l, $cc21    SELRMux def $r2h, renamable $r3l, renamable $r3l, 1, 2, implicit $cc, debug-instr-number 122    SELRMux def $r1h, renamable $r2h, renamable $r3h, 1, 2, implicit $cc, debug-instr-number 223    SELRMux def $r2h, renamable $r2h, renamable $r3l, 1, 2, implicit $cc, debug-instr-number 324    SELRMux def $r1h, renamable $r2l, renamable $r3l, 1, 2, implicit $cc, debug-instr-number 425