summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/llvm.amdgpu.lrp.ll
blob: c493a016e33090d78b483d07aeb303c838086f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s

declare float @llvm.AMDGPU.lrp(float, float, float) nounwind readnone

; FUNC-LABEL: @test_lrp
; SI: V_SUB_F32
; SI: V_MAD_F32
define void @test_lrp(float addrspace(1)* %out, float %src0, float %src1, float %src2) nounwind {
  %mad = call float @llvm.AMDGPU.lrp(float %src0, float %src1, float %src2) nounwind readnone
  store float %mad, float addrspace(1)* %out, align 4
  ret void
}
OpenPOWER on IntegriCloud