@@ -100,7 +100,9 @@ define amdgpu_kernel void @fadd_f16(
100
100
; GFX11-GISEL-NEXT: s_waitcnt vmcnt(0)
101
101
; GFX11-GISEL-NEXT: buffer_load_u16 v1, off, s[0:3], 0 glc dlc
102
102
; GFX11-GISEL-NEXT: s_waitcnt vmcnt(0)
103
- ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v1.l
103
+ ; GFX11-GISEL-NEXT: v_mov_b16_e32 v0.h, v1.l
104
+ ; GFX11-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1)
105
+ ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v0.h
104
106
; GFX11-GISEL-NEXT: buffer_store_b16 v0, off, s[4:7], 0
105
107
; GFX11-GISEL-NEXT: s_nop 0
106
108
; GFX11-GISEL-NEXT: s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
@@ -257,13 +259,14 @@ define amdgpu_kernel void @fadd_f16_imm_a(
257
259
; GFX11-GISEL-NEXT: s_load_b128 s[0:3], s[0:1], 0x24
258
260
; GFX11-GISEL-NEXT: s_mov_b32 s6, -1
259
261
; GFX11-GISEL-NEXT: s_mov_b32 s7, 0x31016000
260
- ; GFX11-GISEL-NEXT: v_mov_b16_e32 v1.l, 0x3c00
261
262
; GFX11-GISEL-NEXT: s_waitcnt lgkmcnt(0)
262
263
; GFX11-GISEL-NEXT: s_mov_b64 s[4:5], s[2:3]
263
264
; GFX11-GISEL-NEXT: s_mov_b64 s[2:3], s[6:7]
264
265
; GFX11-GISEL-NEXT: buffer_load_u16 v0, off, s[4:7], 0
265
266
; GFX11-GISEL-NEXT: s_waitcnt vmcnt(0)
266
- ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v1.l
267
+ ; GFX11-GISEL-NEXT: v_mov_b16_e32 v0.h, 0x3c00
268
+ ; GFX11-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1)
269
+ ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v0.h
267
270
; GFX11-GISEL-NEXT: buffer_store_b16 v0, off, s[0:3], 0
268
271
; GFX11-GISEL-NEXT: s_nop 0
269
272
; GFX11-GISEL-NEXT: s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
@@ -400,13 +403,14 @@ define amdgpu_kernel void @fadd_f16_imm_b(
400
403
; GFX11-GISEL-NEXT: s_load_b128 s[0:3], s[0:1], 0x24
401
404
; GFX11-GISEL-NEXT: s_mov_b32 s6, -1
402
405
; GFX11-GISEL-NEXT: s_mov_b32 s7, 0x31016000
403
- ; GFX11-GISEL-NEXT: v_mov_b16_e32 v1.l, 0x4000
404
406
; GFX11-GISEL-NEXT: s_waitcnt lgkmcnt(0)
405
407
; GFX11-GISEL-NEXT: s_mov_b64 s[4:5], s[2:3]
406
408
; GFX11-GISEL-NEXT: s_mov_b64 s[2:3], s[6:7]
407
409
; GFX11-GISEL-NEXT: buffer_load_u16 v0, off, s[4:7], 0
408
410
; GFX11-GISEL-NEXT: s_waitcnt vmcnt(0)
409
- ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v1.l
411
+ ; GFX11-GISEL-NEXT: v_mov_b16_e32 v0.h, 0x4000
412
+ ; GFX11-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1)
413
+ ; GFX11-GISEL-NEXT: v_add_f16_e32 v0.l, v0.l, v0.h
410
414
; GFX11-GISEL-NEXT: buffer_store_b16 v0, off, s[0:3], 0
411
415
; GFX11-GISEL-NEXT: s_nop 0
412
416
; GFX11-GISEL-NEXT: s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
0 commit comments