1# REQUIRES: amdgpu-registered-target 2# RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=instructions -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log 3# RUN: FileCheck --match-full-lines --check-prefix=RESULT %s < %t 4 5# CHECK-INTERESTINGNESS: S_NOP 0 6 7# RESULT: S_ENDPGM 0, implicit undef %0:vgpr_32 8 9# Previously the the function clone would assert due to not preserving 10# virtual registers which had no defs. 11 12--- 13name: undef_vreg_operand 14tracksRegLiveness: true 15body: | 16 bb.0: 17 S_NOP 0 18 S_ENDPGM 0, implicit undef %0:vgpr_32 19 20... 21