brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 5d6d2fa Raw
58 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 22  bb.2:23    liveins: $cc24 25    %2:grx32bit = LOCRMux %1, %0, 14, 8, implicit $cc26    $r2l = COPY %227    Return implicit $r2l28...29 30# CHECK: *** Bad machine code: Live in register not found to be live out from predecessor. ***31# CHECK:- function:    f232# CHECK:- basic block: %bb.233# CHECK:CC not found to be live out from %bb.134---35name:            f236tracksRegLiveness: true37machineFunctionInfo: {}38body:             |39  bb.0:40    liveins: $r2l, $r3l41  42    %1:gr32bit = COPY $r3l43    %0:gr32bit = COPY $r2l44    CHIMux %0, 0, implicit-def $cc45 46  bb.1:47    liveins: $cc48    KILL killed $cc49 50  bb.2:51    liveins: $cc52 53    %2:grx32bit = LOCRMux %1, %0, 14, 8, implicit $cc54    $r2l = COPY %255    Return implicit $r2l56 57...58