mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
cc6a418600
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212870 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
497 B
LLVM
13 lines
497 B
LLVM
; 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
|
|
}
|