1 # RUN: not --crash llc -o - %s -mtriple=s390x-linux-gnu -mcpu=z14 -run-pass none 2>&1 | FileCheck %s
2 # REQUIRES: systemz-registered-target
4 # Test that a the machine verifier reports an error when a register in
5 # liveins is not liveout from predecessor.
9 tracksRegLiveness: true
10 machineFunctionInfo: {}
15 %1:gr32bit = COPY $r3l
16 %0:gr32bit = COPY $r2l
17 CHIMux %0, 0, implicit-def $cc
25 %2:grx32bit = LOCRMux %1, %0, 14, 8, implicit $cc
30 # CHECK: *** Bad machine code: Live in register not found to be live out from predecessor. ***
31 # CHECK:- function: f2
32 # CHECK:- basic block: %bb.2
33 # CHECK:CC not found to be live out from %bb.1
36 tracksRegLiveness: true
37 machineFunctionInfo: {}
42 %1:gr32bit = COPY $r3l
43 %0:gr32bit = COPY $r2l
44 CHIMux %0, 0, implicit-def $cc
53 %2:grx32bit = LOCRMux %1, %0, 14, 8, implicit $cc