@@ -426,16 +426,27 @@ define amdgpu_kernel void @test_call_external_void_func_i8_imm(i32) #0 {
426426; GFX9-NEXT: s_swappc_b64 s[30:31], s[4:5]
427427; GFX9-NEXT: s_endpgm
428428;
429- ; GFX11-LABEL: test_call_external_void_func_i8_imm:
430- ; GFX11: ; %bb.0:
431- ; GFX11-NEXT: v_mov_b32_e32 v0, 0x7b
432- ; GFX11-NEXT: s_getpc_b64 s[2:3]
433- ; GFX11-NEXT: s_add_u32 s2, s2, external_void_func_i8@rel32@lo+4
434- ; GFX11-NEXT: s_addc_u32 s3, s3, external_void_func_i8@rel32@hi+12
435- ; GFX11-NEXT: s_mov_b64 s[6:7], s[0:1]
436- ; GFX11-NEXT: s_mov_b32 s32, 0
437- ; GFX11-NEXT: s_swappc_b64 s[30:31], s[2:3]
438- ; GFX11-NEXT: s_endpgm
429+ ; GFX11-TRUE16-LABEL: test_call_external_void_func_i8_imm:
430+ ; GFX11-TRUE16: ; %bb.0:
431+ ; GFX11-TRUE16-NEXT: v_mov_b16_e32 v0.l, 0x7b
432+ ; GFX11-TRUE16-NEXT: s_getpc_b64 s[2:3]
433+ ; GFX11-TRUE16-NEXT: s_add_u32 s2, s2, external_void_func_i8@rel32@lo+4
434+ ; GFX11-TRUE16-NEXT: s_addc_u32 s3, s3, external_void_func_i8@rel32@hi+12
435+ ; GFX11-TRUE16-NEXT: s_mov_b64 s[6:7], s[0:1]
436+ ; GFX11-TRUE16-NEXT: s_mov_b32 s32, 0
437+ ; GFX11-TRUE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
438+ ; GFX11-TRUE16-NEXT: s_endpgm
439+ ;
440+ ; GFX11-FAKE16-LABEL: test_call_external_void_func_i8_imm:
441+ ; GFX11-FAKE16: ; %bb.0:
442+ ; GFX11-FAKE16-NEXT: v_mov_b32_e32 v0, 0x7b
443+ ; GFX11-FAKE16-NEXT: s_getpc_b64 s[2:3]
444+ ; GFX11-FAKE16-NEXT: s_add_u32 s2, s2, external_void_func_i8@rel32@lo+4
445+ ; GFX11-FAKE16-NEXT: s_addc_u32 s3, s3, external_void_func_i8@rel32@hi+12
446+ ; GFX11-FAKE16-NEXT: s_mov_b64 s[6:7], s[0:1]
447+ ; GFX11-FAKE16-NEXT: s_mov_b32 s32, 0
448+ ; GFX11-FAKE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
449+ ; GFX11-FAKE16-NEXT: s_endpgm
439450;
440451; HSA-LABEL: test_call_external_void_func_i8_imm:
441452; HSA: ; %bb.0:
@@ -723,16 +734,27 @@ define amdgpu_kernel void @test_call_external_void_func_i16_imm() #0 {
723734; GFX9-NEXT: s_swappc_b64 s[30:31], s[4:5]
724735; GFX9-NEXT: s_endpgm
725736;
726- ; GFX11-LABEL: test_call_external_void_func_i16_imm:
727- ; GFX11: ; %bb.0:
728- ; GFX11-NEXT: v_mov_b32_e32 v0, 0x7b
729- ; GFX11-NEXT: s_getpc_b64 s[2:3]
730- ; GFX11-NEXT: s_add_u32 s2, s2, external_void_func_i16@rel32@lo+4
731- ; GFX11-NEXT: s_addc_u32 s3, s3, external_void_func_i16@rel32@hi+12
732- ; GFX11-NEXT: s_mov_b64 s[6:7], s[0:1]
733- ; GFX11-NEXT: s_mov_b32 s32, 0
734- ; GFX11-NEXT: s_swappc_b64 s[30:31], s[2:3]
735- ; GFX11-NEXT: s_endpgm
737+ ; GFX11-TRUE16-LABEL: test_call_external_void_func_i16_imm:
738+ ; GFX11-TRUE16: ; %bb.0:
739+ ; GFX11-TRUE16-NEXT: v_mov_b16_e32 v0.l, 0x7b
740+ ; GFX11-TRUE16-NEXT: s_getpc_b64 s[2:3]
741+ ; GFX11-TRUE16-NEXT: s_add_u32 s2, s2, external_void_func_i16@rel32@lo+4
742+ ; GFX11-TRUE16-NEXT: s_addc_u32 s3, s3, external_void_func_i16@rel32@hi+12
743+ ; GFX11-TRUE16-NEXT: s_mov_b64 s[6:7], s[0:1]
744+ ; GFX11-TRUE16-NEXT: s_mov_b32 s32, 0
745+ ; GFX11-TRUE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
746+ ; GFX11-TRUE16-NEXT: s_endpgm
747+ ;
748+ ; GFX11-FAKE16-LABEL: test_call_external_void_func_i16_imm:
749+ ; GFX11-FAKE16: ; %bb.0:
750+ ; GFX11-FAKE16-NEXT: v_mov_b32_e32 v0, 0x7b
751+ ; GFX11-FAKE16-NEXT: s_getpc_b64 s[2:3]
752+ ; GFX11-FAKE16-NEXT: s_add_u32 s2, s2, external_void_func_i16@rel32@lo+4
753+ ; GFX11-FAKE16-NEXT: s_addc_u32 s3, s3, external_void_func_i16@rel32@hi+12
754+ ; GFX11-FAKE16-NEXT: s_mov_b64 s[6:7], s[0:1]
755+ ; GFX11-FAKE16-NEXT: s_mov_b32 s32, 0
756+ ; GFX11-FAKE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
757+ ; GFX11-FAKE16-NEXT: s_endpgm
736758;
737759; HSA-LABEL: test_call_external_void_func_i16_imm:
738760; HSA: ; %bb.0:
@@ -1642,16 +1664,27 @@ define amdgpu_kernel void @test_call_external_void_func_f16_imm() #0 {
16421664; GFX9-NEXT: s_swappc_b64 s[30:31], s[4:5]
16431665; GFX9-NEXT: s_endpgm
16441666;
1645- ; GFX11-LABEL: test_call_external_void_func_f16_imm:
1646- ; GFX11: ; %bb.0:
1647- ; GFX11-NEXT: v_mov_b32_e32 v0, 0x4400
1648- ; GFX11-NEXT: s_getpc_b64 s[2:3]
1649- ; GFX11-NEXT: s_add_u32 s2, s2, external_void_func_f16@rel32@lo+4
1650- ; GFX11-NEXT: s_addc_u32 s3, s3, external_void_func_f16@rel32@hi+12
1651- ; GFX11-NEXT: s_mov_b64 s[6:7], s[0:1]
1652- ; GFX11-NEXT: s_mov_b32 s32, 0
1653- ; GFX11-NEXT: s_swappc_b64 s[30:31], s[2:3]
1654- ; GFX11-NEXT: s_endpgm
1667+ ; GFX11-TRUE16-LABEL: test_call_external_void_func_f16_imm:
1668+ ; GFX11-TRUE16: ; %bb.0:
1669+ ; GFX11-TRUE16-NEXT: v_mov_b16_e32 v0.l, 0x4400
1670+ ; GFX11-TRUE16-NEXT: s_getpc_b64 s[2:3]
1671+ ; GFX11-TRUE16-NEXT: s_add_u32 s2, s2, external_void_func_f16@rel32@lo+4
1672+ ; GFX11-TRUE16-NEXT: s_addc_u32 s3, s3, external_void_func_f16@rel32@hi+12
1673+ ; GFX11-TRUE16-NEXT: s_mov_b64 s[6:7], s[0:1]
1674+ ; GFX11-TRUE16-NEXT: s_mov_b32 s32, 0
1675+ ; GFX11-TRUE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
1676+ ; GFX11-TRUE16-NEXT: s_endpgm
1677+ ;
1678+ ; GFX11-FAKE16-LABEL: test_call_external_void_func_f16_imm:
1679+ ; GFX11-FAKE16: ; %bb.0:
1680+ ; GFX11-FAKE16-NEXT: v_mov_b32_e32 v0, 0x4400
1681+ ; GFX11-FAKE16-NEXT: s_getpc_b64 s[2:3]
1682+ ; GFX11-FAKE16-NEXT: s_add_u32 s2, s2, external_void_func_f16@rel32@lo+4
1683+ ; GFX11-FAKE16-NEXT: s_addc_u32 s3, s3, external_void_func_f16@rel32@hi+12
1684+ ; GFX11-FAKE16-NEXT: s_mov_b64 s[6:7], s[0:1]
1685+ ; GFX11-FAKE16-NEXT: s_mov_b32 s32, 0
1686+ ; GFX11-FAKE16-NEXT: s_swappc_b64 s[30:31], s[2:3]
1687+ ; GFX11-FAKE16-NEXT: s_endpgm
16551688;
16561689; HSA-LABEL: test_call_external_void_func_f16_imm:
16571690; HSA: ; %bb.0:
0 commit comments