mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
[NVPTX] Fix logic error in loading vector parameters of more than 4 components
llvm-svn: 194409
This commit is contained in:
parent
8d7ebe36dd
commit
0d1f2863f9
@ -1595,7 +1595,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
|
||||
}
|
||||
Ofst += TD->getTypeAllocSize(VecVT.getTypeForEVT(F->getContext()));
|
||||
}
|
||||
InsIdx += VecSize;
|
||||
InsIdx += NumElts;
|
||||
}
|
||||
|
||||
if (NumElts > 0)
|
||||
|
13
test/CodeGen/NVPTX/vec8.ll
Normal file
13
test/CodeGen/NVPTX/vec8.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
||||
|
||||
target triple = "nvptx-unknown-cuda"
|
||||
|
||||
; CHECK: .visible .func foo
|
||||
define void @foo(<8 x i8> %a, i8* %b) {
|
||||
%t0 = extractelement <8 x i8> %a, i32 0
|
||||
; CHECK-DAG: ld.param.v4.u8
|
||||
; CHECK-DAG: ld.param.u32
|
||||
store i8 %t0, i8* %b
|
||||
ret void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user