xref: /aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/llvm.r600.dot4.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=r600 -mcpu=redwood -verify-machineinstrs < %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdeclare float @llvm.r600.dot4(<4 x float>, <4 x float>) nounwind readnone
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @test_dp4(float addrspace(1)* %out, <4 x float> addrspace(1)* %a, <4 x float> addrspace(1)* %b) nounwind {
6*9880d681SAndroid Build Coastguard Worker  %src0 = load <4 x float>, <4 x float> addrspace(1)* %a, align 16
7*9880d681SAndroid Build Coastguard Worker  %src1 = load <4 x float>, <4 x float> addrspace(1)* %b, align 16
8*9880d681SAndroid Build Coastguard Worker  %dp4 = call float @llvm.r600.dot4(<4 x float> %src0, <4 x float> %src1) nounwind readnone
9*9880d681SAndroid Build Coastguard Worker  store float %dp4, float addrspace(1)* %out, align 4
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12