DAGCombine: fold (or (and X, M), (and X, N)) -> (and X, (or M, N))
[oota-llvm.git] / test / CodeGen / R600 / llvm.amdgpu.lrp.ll
1 ; RUN: llc -march=amdgcn -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 }