@@ -3962,14 +3962,12 @@ define amdgpu_kernel void @v_test_v2i16_x_add_undef_neg32(ptr addrspace(1) %out,
39623962; VI-GISEL-NEXT: v_addc_u32_e32 v1, vcc, 0, v1, vcc
39633963; VI-GISEL-NEXT: flat_load_dword v3, v[0:1]
39643964; VI-GISEL-NEXT: v_mov_b32_e32 v0, s0
3965+ ; VI-GISEL-NEXT: v_mov_b32_e32 v1, s1
39653966; VI-GISEL-NEXT: v_add_u32_e32 v0, vcc, v0, v2
39663967; VI-GISEL-NEXT: v_not_b32_e32 v2, 31
3967- ; VI-GISEL-NEXT: v_mov_b32_e32 v1, s1
3968- ; VI-GISEL-NEXT: s_and_b32 s0, 0xffff, s0
39693968; VI-GISEL-NEXT: v_addc_u32_e32 v1, vcc, 0, v1, vcc
39703969; VI-GISEL-NEXT: s_waitcnt vmcnt(0)
39713970; VI-GISEL-NEXT: v_add_u16_sdwa v2, v3, v2 dst_sel:WORD_1 dst_unused:UNUSED_PAD src0_sel:WORD_1 src1_sel:DWORD
3972- ; VI-GISEL-NEXT: v_or_b32_e32 v2, s0, v2
39733971; VI-GISEL-NEXT: flat_store_dword v[0:1], v2
39743972; VI-GISEL-NEXT: s_endpgm
39753973;
@@ -4079,15 +4077,12 @@ define amdgpu_kernel void @v_test_v2i16_x_add_neg32_undef(ptr addrspace(1) %out,
40794077; VI-GISEL-NEXT: v_add_u32_e32 v0, vcc, v0, v2
40804078; VI-GISEL-NEXT: v_addc_u32_e32 v1, vcc, 0, v1, vcc
40814079; VI-GISEL-NEXT: flat_load_dword v3, v[0:1]
4082- ; VI-GISEL-NEXT: s_and_b32 s2, 0xffff, s0
40834080; VI-GISEL-NEXT: v_mov_b32_e32 v0, s0
40844081; VI-GISEL-NEXT: v_mov_b32_e32 v1, s1
40854082; VI-GISEL-NEXT: v_add_u32_e32 v0, vcc, v0, v2
4086- ; VI-GISEL-NEXT: s_lshl_b32 s0, s2, 16
40874083; VI-GISEL-NEXT: v_addc_u32_e32 v1, vcc, 0, v1, vcc
40884084; VI-GISEL-NEXT: s_waitcnt vmcnt(0)
40894085; VI-GISEL-NEXT: v_add_u16_e32 v2, 0xffe0, v3
4090- ; VI-GISEL-NEXT: v_or_b32_e32 v2, s0, v2
40914086; VI-GISEL-NEXT: flat_store_dword v[0:1], v2
40924087; VI-GISEL-NEXT: s_endpgm
40934088;
0 commit comments