26 lines · plain
1# RUN: not llc -mtriple=amdgcn-- -mcpu=gfx900 -run-pass=none -o - %s 2>&1 | FileCheck %s2 3# Check a diagnostic is emitted if non-allocatable classes are used4# with virtual registers, and there's no assert.5 6# CHECK: error: {{.*}}: Cannot use non-allocatable class 'TTMP_32' for virtual register 0 in function 'virtreg_unallocatable'7# CHECK: error: {{.*}}: Cannot use non-allocatable class 'TTMP_32' for virtual register 1 in function 'virtreg_unallocatable'8# CHECK: error: {{.*}}: Cannot use non-allocatable class 'TTMP_32' for virtual register 2 in function 'virtreg_unallocatable'9# CHECK: error: {{.*}}: Cannot use non-allocatable class 'TTMP_32' for virtual register named_def in function 'virtreg_unallocatable'10# CHECK: error: {{.*}}: Cannot use non-allocatable class 'TTMP_32' for virtual register named_use in function 'virtreg_unallocatable'11 12---13name: virtreg_unallocatable14tracksRegLiveness: true15registers:16 - { id: 0, class: ttmp_32}17body: |18 bb.0:19 %1:ttmp_32 = IMPLICIT_DEF20 S_NOP 0, implicit %2:ttmp_3221 22 %named_def:ttmp_32 = IMPLICIT_DEF23 S_NOP 0, implicit %named_use:ttmp_3224 25...26