source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AMDGPU/texture-input-merge.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 1.4 KB
Line 
1;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
3;CHECK-NOT: MOV
4
5define void @test(<4 x float> inreg %reg0) #0 {
6  %1 = extractelement <4 x float> %reg0, i32 0
7  %2 = extractelement <4 x float> %reg0, i32 1
8  %3 = extractelement <4 x float> %reg0, i32 2
9  %4 = extractelement <4 x float> %reg0, i32 3
10  %5 = fmul float %1, 3.0
11  %6 = fmul float %2, 3.0
12  %7 = fmul float %3, 3.0
13  %8 = fmul float %4, 3.0
14  %9 = insertelement <4 x float> undef, float %5, i32 0
15  %10 = insertelement <4 x float> %9, float %6, i32 1
16  %11 = insertelement <4 x float> undef, float %7, i32 0
17  %12 = insertelement <4 x float> %11, float %5, i32 1
18  %13 = insertelement <4 x float> undef, float %8, i32 0
19  %14 = call <4 x float> @llvm.R600.tex(<4 x float> %10, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
20  %15 = call <4 x float> @llvm.R600.tex(<4 x float> %12, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
21  %16 = call <4 x float> @llvm.R600.tex(<4 x float> %13, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
22  %17 = fadd <4 x float> %14, %15
23  %18 = fadd <4 x float> %17, %16
24  call void @llvm.R600.store.swizzle(<4 x float> %18, i32 0, i32 0)
25  ret void
26}
27
28declare <4 x float> @llvm.R600.tex(<4 x float>, i32, i32, i32, i32, i32, i32, i32, i32, i32) readnone
29declare void @llvm.R600.store.swizzle(<4 x float>, i32, i32)
30
31attributes #0 = { "ShaderType"="1" }
Note: See TracBrowser for help on using the repository browser.