summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/R600/vtx-schedule.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-07-23 01:48:18 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-07-23 01:48:18 +0000
commit1e80309ebe672ca6302c0b6d400a72c25791cbc7 (patch)
tree933bbf825eef901e2d367593d97dbed151d62682 /llvm/test/CodeGen/R600/vtx-schedule.ll
parent34ed721af4b869895c95188c524df82197566ba7 (diff)
downloadbcm5719-llvm-1e80309ebe672ca6302c0b6d400a72c25791cbc7.tar.gz
bcm5719-llvm-1e80309ebe672ca6302c0b6d400a72c25791cbc7.zip
R600: Use KCache for kernel arguments
Reviewed-by: Vincent Lejeune <vljn at ovi.com> llvm-svn: 186918
Diffstat (limited to 'llvm/test/CodeGen/R600/vtx-schedule.ll')
-rw-r--r--llvm/test/CodeGen/R600/vtx-schedule.ll14
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/R600/vtx-schedule.ll b/llvm/test/CodeGen/R600/vtx-schedule.ll
index a0c79e36d3c..97d37ed84ce 100644
--- a/llvm/test/CodeGen/R600/vtx-schedule.ll
+++ b/llvm/test/CodeGen/R600/vtx-schedule.ll
@@ -6,17 +6,13 @@
; CHECK: @test
; CHECK: Fetch clause
-; CHECK_VTX_READ_32 [[IN0:T[0-9]+\.X]], [[IN0]], 40
-; CHECK_VTX_READ_32 [[IN1:T[0-9]+\.X]], [[IN1]], 44
-; CHECK: Fetch clause
; CHECK_VTX_READ_32 [[IN0:T[0-9]+\.X]], [[IN0]], 0
+; CHECK: Fetch clause
; CHECK_VTX_READ_32 [[IN1:T[0-9]+\.X]], [[IN1]], 0
-define void @test(i32 addrspace(1)* nocapture %out, i32 addrspace(1)* nocapture %in0, i32 addrspace(1)* nocapture %in1) {
+define void @test(i32 addrspace(1)* nocapture %out, i32 addrspace(1)* addrspace(1)* nocapture %in0) {
entry:
- %0 = load i32 addrspace(1)* %in0, align 4
- %1 = load i32 addrspace(1)* %in1, align 4
- %cmp.i = icmp slt i32 %0, %1
- %cond.i = select i1 %cmp.i, i32 %0, i32 %1
- store i32 %cond.i, i32 addrspace(1)* %out, align 4
+ %0 = load i32 addrspace(1)* addrspace(1)* %in0
+ %1 = load i32 addrspace(1)* %0
+ store i32 %1, i32 addrspace(1)* %out
ret void
}
OpenPOWER on IntegriCloud