summaryrefslogtreecommitdiff
path: root/test/CodeGen/R600/trunc.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-10-23 00:44:32 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-10-23 00:44:32 +0000
commitf95b1621887e3409ceec2db47e1b44271d934735 (patch)
tree8b2655eb7bf40d51eedf9649d0a929e1fc2c6cb1 /test/CodeGen/R600/trunc.ll
parentd0716b064744598ba7df33b8b47de0375c450570 (diff)
downloadllvm-f95b1621887e3409ceec2db47e1b44271d934735.tar.gz
llvm-f95b1621887e3409ceec2db47e1b44271d934735.tar.bz2
llvm-f95b1621887e3409ceec2db47e1b44271d934735.tar.xz
R600: Fix handling of vector kernel arguments
The SelectionDAGBuilder was promoting vector kernel arguments to legal types, but this won't work for R600 and SI since kernel arguments are stored in memory and can't be promoted. In order to handle vector arguments correctly we need to look at the original types from the LLVM IR function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/R600/trunc.ll')
-rw-r--r--test/CodeGen/R600/trunc.ll1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/CodeGen/R600/trunc.ll b/test/CodeGen/R600/trunc.ll
index be7a430885..58709dffc9 100644
--- a/test/CodeGen/R600/trunc.ll
+++ b/test/CodeGen/R600/trunc.ll
@@ -21,7 +21,6 @@ define void @trunc_i64_to_i32_store(i32 addrspace(1)* %out, i64 %in) {
; SI: S_LOAD_DWORDX2
; SI: S_LOAD_DWORDX2 [[SREG:SGPR[0-9]+_SGPR[0-9]+]]
; SI: V_LSHL_B64 [[LO_VREG:VGPR[0-9]+]]_VGPR{{[0-9]+}}, [[SREG]], 2
-; SI-NOT: [[LO_VREG]]
; SI: BUFFER_STORE_DWORD [[LO_VREG]],
define void @trunc_shl_i64(i32 addrspace(1)* %out, i64 %a) {
%b = shl i64 %a, 2