37 lines · plain
1# RUN: not --crash llc -o - %s -mtriple=s390x-linux-gnu -mcpu=z14 -run-pass none 2>&1 | FileCheck %s2# REQUIRES: systemz-registered-target3 4# Test that a the machine verifier reports an error when a register in5# liveins is not liveout from predecessor.6 7---8name: f19tracksRegLiveness: true10machineFunctionInfo: {}11body: |12 bb.0:13 liveins: $r2l, $r3l14 15 %1:gr32bit = COPY $r3l16 %0:gr32bit = COPY $r2l17 CHIMux %0, 0, implicit-def $cc18 19 bb.1:20 liveins: $cc21 BRC 14, 8, %bb.3, implicit $cc22 23 bb.2:24 25 bb.3:26 liveins: $cc27 28 %2:grx32bit = LOCRMux %1, %0, 14, 8, implicit $cc29 $r2l = COPY %230 Return implicit $r2l31...32 33# CHECK: *** Bad machine code: Live in register not found to be live out from predecessor. ***34# CHECK:- function: f135# CHECK:- basic block: %bb.336# CHECK:CC not found to be live out from %bb.237