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
5 # CHECK-INTERESTINGNESS: S_NOP 0
7 # RESULT: S_ENDPGM 0, implicit undef %0:vgpr_32
9 # Previously the the function clone would assert due to not preserving
10 # virtual registers which had no defs.
13 name: undef_vreg_operand
14 tracksRegLiveness: true
18 S_ENDPGM 0, implicit undef %0:vgpr_32