diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-11-11 22:10:24 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-11-11 22:10:24 +0000 |
commit | f143af3fe951e086b7c158213e6e113c73835723 (patch) | |
tree | 899df67335f187838352bfb3cf54b5b37d80bd24 /llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll | |
parent | 3168ab337635b6ed5a279cd432f95dc3da17fb2c (diff) | |
download | bcm5719-llvm-f143af3fe951e086b7c158213e6e113c73835723.tar.gz bcm5719-llvm-f143af3fe951e086b7c158213e6e113c73835723.zip |
R600: Use function inputs to represent data stored in gpr
llvm-svn: 194425
Diffstat (limited to 'llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll')
-rw-r--r-- | llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll b/llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll index 2a660943098..11e8f5176f4 100644 --- a/llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll +++ b/llvm/test/CodeGen/R600/schedule-fs-loop-nested-if.ll @@ -1,12 +1,12 @@ ;RUN: llc < %s -march=r600 -mcpu=cayman -stress-sched -verify-misched -verify-machineinstrs ;REQUIRES: asserts -define void @main() { +define void @main(<4 x float> inreg %reg0, <4 x float> inreg %reg1) #1 { main_body: - %0 = call float @llvm.R600.interp.input(i32 0, i32 0) - %1 = call float @llvm.R600.interp.input(i32 1, i32 0) - %2 = call float @llvm.R600.interp.input(i32 2, i32 0) - %3 = call float @llvm.R600.interp.input(i32 3, i32 0) + %0 = extractelement <4 x float> %reg1, i32 0 + %1 = extractelement <4 x float> %reg1, i32 1 + %2 = extractelement <4 x float> %reg1, i32 2 + %3 = extractelement <4 x float> %reg1, i32 3 %4 = fcmp ult float %1, 0.000000e+00 %5 = select i1 %4, float 1.000000e+00, float 0.000000e+00 %6 = fsub float -0.000000e+00, %5 @@ -74,10 +74,9 @@ ELSE17: ; preds = %ELSE br label %ENDIF } -declare float @llvm.R600.interp.input(i32, i32) #0 - declare float @llvm.AMDIL.clamp.(float, float, float) #0 declare void @llvm.R600.store.swizzle(<4 x float>, i32, i32) attributes #0 = { readnone } +attributes #1 = { "ShaderType"="1" } |