1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck %s --check-prefixes=GFX11 3; RUN: llc -global-isel -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck %s --check-prefixes=GFX11 4 5declare i16 @llvm.amdgcn.fdot2.bf16.bf16(<2 x i16> %a, <2 x i16> %b, i16 %c) 6 7define amdgpu_kernel void @test_llvm_amdgcn_fdot2_f16_f16( 8; GFX11-LABEL: test_llvm_amdgcn_fdot2_f16_f16: 9; GFX11: ; %bb.0: ; %entry 10; GFX11-NEXT: s_load_b256 s[0:7], s[0:1], 0x24 11; GFX11-NEXT: v_mov_b32_e32 v0, 0 12; GFX11-NEXT: s_waitcnt lgkmcnt(0) 13; GFX11-NEXT: global_load_u16 v1, v0, s[6:7] 14; GFX11-NEXT: s_load_b32 s2, s[2:3], 0x0 15; GFX11-NEXT: s_load_b32 s3, s[4:5], 0x0 16; GFX11-NEXT: s_waitcnt vmcnt(0) lgkmcnt(0) 17; GFX11-NEXT: v_dot2_bf16_bf16 v1, s2, s3, v1 18; GFX11-NEXT: global_store_b16 v0, v1, s[0:1] 19; GFX11-NEXT: s_endpgm 20 i16 addrspace(1)* %r, 21 <2 x i16> addrspace(1)* %a, 22 <2 x i16> addrspace(1)* %b, 23 i16 addrspace(1)* %c) { 24entry: 25 %a.val = load <2 x i16>, <2 x i16> addrspace(1)* %a 26 %b.val = load <2 x i16>, <2 x i16> addrspace(1)* %b 27 %c.val = load i16, i16 addrspace(1)* %c 28 %r.val = call i16 @llvm.amdgcn.fdot2.bf16.bf16(<2 x i16> %a.val, <2 x i16> %b.val, i16 %c.val) 29 store i16 %r.val, i16 addrspace(1)* %r 30 ret void 31} 32