1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1031 -verify-machineinstrs -run-pass=postrapseudos -o - %s | FileCheck %s
4 # The copy has an implicit def of a superregister which overlaps the
5 # register it defines. We cannot preserve the kill on the tuple def
6 # when copying implicit operands to the last inserted v_mov_b32, since
7 # it kills the subregister defined earlier in the expansion.
10 name: copy_has_implicit_kill_superreg
11 tracksRegLiveness: true
15 ; CHECK-LABEL: name: copy_has_implicit_kill_superreg
16 ; CHECK: renamable $vgpr7_vgpr8_vgpr9_vgpr10 = IMPLICIT_DEF
17 ; CHECK-NEXT: $vgpr7 = V_MOV_B32_e32 $vgpr10, implicit $exec, implicit-def $vgpr7_vgpr8, implicit $vgpr10_vgpr11
18 ; CHECK-NEXT: $vgpr8 = V_MOV_B32_e32 $vgpr11, implicit $exec, implicit killed $vgpr10_vgpr11, implicit $vgpr7_vgpr8_vgpr9_vgpr10
19 ; CHECK-NEXT: S_ENDPGM 0, implicit $vgpr7
20 renamable $vgpr7_vgpr8_vgpr9_vgpr10 = IMPLICIT_DEF
21 renamable $vgpr7_vgpr8 = COPY killed renamable $vgpr10_vgpr11, implicit killed $vgpr7_vgpr8_vgpr9_vgpr10
22 S_ENDPGM 0, implicit $vgpr7