brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 95ba0b4 Raw
37 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -o - %s -verify-machineinstrs -mtriple=s390x-linux-gnu -mcpu=z196 -run-pass=livevars,twoaddressinstruction | FileCheck %s3 4# Check that the COPY from [[COPY3]] is not killed because there is a subsequent5# use of [[COPY3]] in the INLINEASM instruction.6---7name: f28tracksRegLiveness: true9body: |10  bb.0:11    liveins: $r2l12 13    ; CHECK-LABEL: name: f214    ; CHECK: liveins: $r2l15    ; CHECK-NEXT: {{  $}}16    ; CHECK-NEXT: [[COPY:%[0-9]+]]:gr32bit = COPY killed $r2l17    ; CHECK-NEXT: [[COPY1:%[0-9]+]]:grh32bit = COPY [[COPY]]18    ; CHECK-NEXT: $r2l = COPY [[COPY]]19    ; CHECK-NEXT: $r3l = COPY killed [[COPY]]20    ; CHECK-NEXT: [[COPY2:%[0-9]+]]:grh32bit = COPY killed [[COPY1]]21    ; CHECK-NEXT: INLINEASM &"stepa $1, $2, $3", 0 /* attdialect */, 524298 /* regdef:GRH32Bit */, def [[COPY2]], 2147483657 /* reguse tiedto:$0 */, [[COPY2]](tied-def 3), 9 /* reguse */, killed $r2l, 9 /* reguse */, killed $r3l22    ; CHECK-NEXT: [[COPY3:%[0-9]+]]:grh32bit = COPY killed [[COPY2]]23    ; CHECK-NEXT: [[COPY4:%[0-9]+]]:grh32bit = COPY [[COPY3]]24    ; CHECK-NEXT: INLINEASM &"stepb $1, $2", 0 /* attdialect */, 524299 /* regdef-ec:GRH32Bit */, def early-clobber [[COPY4]], 2147483657 /* reguse tiedto:$0 */, [[COPY4]](tied-def 3), 524297 /* reguse:GRH32Bit */, [[COPY3]]25    ; CHECK-NEXT: $r2l = COPY killed [[COPY4]]26    ; CHECK-NEXT: Return implicit killed $r2l27    %0:gr32bit = COPY killed $r2l28    %2:grh32bit = COPY %029    $r2l = COPY %030    $r3l = COPY killed %031    INLINEASM &"stepa $1, $2, $3", 0 /* attdialect */, 524298 /* regdef:GRH32Bit */, def %1:grh32bit, 2147483657 /* reguse tiedto:$0 */, killed %2(tied-def 3), 9 /* reguse */, killed $r2l, 9 /* reguse */, killed $r3l32    %4:grh32bit = COPY killed %133    INLINEASM &"stepb $1, $2", 0 /* attdialect */, 524299 /* regdef-ec:GRH32Bit */, def early-clobber %3:grh32bit, 2147483657 /* reguse tiedto:$0 */, killed %4(tied-def 3), 524297 /* reguse:GRH32Bit */, %434    $r2l = COPY killed %335    Return implicit killed $r2l36...37