CodeGen: extend f16 conversions to permit types > float.
[oota-llvm.git] / test / CodeGen / R600 / llvm.amdgpu.lrp.ll
1 ; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s
2
3 declare 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
8 define 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 }