31 lines · plain
1# RUN: not --crash llc -mtriple=i686-- -run-pass liveintervals -o - %s 2>&1 | FileCheck %s2# RUN: not --crash llc -mtriple=i686-- --passes='print<live-intervals>' -o - %s 2>&1 | FileCheck %s3# REQUIRES: asserts4 5--- |6 define void @func() { ret void }7...8---9# Liveness calculation should detect that we do not have a definition for %010# on all paths; In this example a def for %0 is missing when jumping from11# bb.0 to bb.3.12#13# CHECK: Use of %0 does not have a corresponding definition on every path14# CHECK: ERROR: Use not jointly dominated by defs.15name: func16registers:17 - { id: 0, class: gr32 }18body: |19 bb.0:20 JCC_1 %bb.2, 15, implicit $eflags21 JMP_1 %bb.322 23 bb.2:24 %0 = IMPLICIT_DEF25 JMP_1 %bb.326 27 bb.3:28 $eax = COPY %029 RET64 $eax30...31