26 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that the MIR parser reports an error when parsing a3# reference to an undefined virtual register.4 5--- |6 7 define i32 @test(i32 %a) {8 entry:9 ret i32 %a10 }11 12...13---14name: test15tracksRegLiveness: true16registers:17 - { id: 0, class: gr32 }18body: |19 bb.0.entry:20 %0 = COPY $edi21 ; CHECK: Cannot determine class/bank of virtual register 1 in function 'test'22 $eax = COPY %123 RET64 $eax24...25 26