1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s 3 4declare float @llvm.AMDGPU.lrp(float, float, float) nounwind readnone 5 6; FUNC-LABEL: {{^}}test_lrp: 7; SI: v_mad_f32 8; SI: v_mac_f32_e32 9define void @test_lrp(float addrspace(1)* %out, float %src0, float %src1, float %src2) nounwind { 10 %mad = call float @llvm.AMDGPU.lrp(float %src0, float %src1, float %src2) nounwind readnone 11 store float %mad, float addrspace(1)* %out, align 4 12 ret void 13} 14