llvm-project
21 строка · 698.0 Байт
1# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -o /dev/null %s 2>&1 | FileCheck -check-prefix=ERROR %s
2# REQUIRES: amdgpu-registered-target
3
4# When the verifier was detecting the invalid liveness for vcc, it would assert when trying to iterate the subregisters of the implicit virtual register use.
5
6
7# ERROR: *** Bad machine code: Using an undefined physical register ***
8# ERROR: instruction: S_ENDPGM 0, implicit %0:vgpr_32, implicit $vcc
9# ERROR: operand 2: implicit $vcc
10
11...
12
13name: invalid_implicit_physreg_use_with_implicit_virtreg14tracksRegLiveness: true15
16body: |17bb.0:
18%0:vgpr_32 = IMPLICIT_DEF
19S_ENDPGM 0, implicit %0, implicit $vcc
20
21...
22
23