annotate llvm/test/CodeGen/AMDGPU/tex-clause-antidep.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 ;CHECK: TEX
anatofuz
parents:
diff changeset
4 ;CHECK-NEXT: ALU
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 define amdgpu_vs void @test(<4 x float> inreg %reg0) {
anatofuz
parents:
diff changeset
7 %1 = extractelement <4 x float> %reg0, i32 0
anatofuz
parents:
diff changeset
8 %2 = extractelement <4 x float> %reg0, i32 1
anatofuz
parents:
diff changeset
9 %3 = extractelement <4 x float> %reg0, i32 2
anatofuz
parents:
diff changeset
10 %4 = extractelement <4 x float> %reg0, i32 3
anatofuz
parents:
diff changeset
11 %5 = insertelement <4 x float> undef, float %1, i32 0
anatofuz
parents:
diff changeset
12 %6 = insertelement <4 x float> %5, float %2, i32 1
anatofuz
parents:
diff changeset
13 %7 = insertelement <4 x float> %6, float %3, i32 2
anatofuz
parents:
diff changeset
14 %8 = insertelement <4 x float> %7, float %4, i32 3
anatofuz
parents:
diff changeset
15 %9 = call <4 x float> @llvm.r600.tex(<4 x float> %8, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
anatofuz
parents:
diff changeset
16 %10 = call <4 x float> @llvm.r600.tex(<4 x float> %8, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
anatofuz
parents:
diff changeset
17 %11 = fadd <4 x float> %9, %10
anatofuz
parents:
diff changeset
18 call void @llvm.r600.store.swizzle(<4 x float> %11, i32 0, i32 0)
anatofuz
parents:
diff changeset
19 ret void
anatofuz
parents:
diff changeset
20 }
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 declare <4 x float> @llvm.r600.tex(<4 x float>, i32, i32, i32, i32, i32, i32, i32, i32, i32) readnone
anatofuz
parents:
diff changeset
23 declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32)