blob: c493a016e33090d78b483d07aeb303c838086f35 [file] [log] [blame]
Matt Arsenault60268582014-07-12 00:36:19 +00001; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2
3declare float @llvm.AMDGPU.lrp(float, float, float) nounwind readnone
4
5; FUNC-LABEL: @test_lrp
6; SI: V_SUB_F32
7; SI: V_MAD_F32
8define void @test_lrp(float addrspace(1)* %out, float %src0, float %src1, float %src2) nounwind {
9 %mad = call float @llvm.AMDGPU.lrp(float %src0, float %src1, float %src2) nounwind readnone
10 store float %mad, float addrspace(1)* %out, align 4
11 ret void
12}