diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-12-05 12:58:00 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-12-05 12:58:00 +0000 |
commit | 7add5421a686877e0aa87616b92b1f5a85c6feee (patch) | |
tree | 60da0a9d8ca94fc5ab1faf874932646a17c19531 /test/CodeGen | |
parent | 4012c30ef73c48cbdcf9f96c011abd49e0032753 (diff) | |
download | llvm-7add5421a686877e0aa87616b92b1f5a85c6feee.tar.gz llvm-7add5421a686877e0aa87616b92b1f5a85c6feee.tar.bz2 llvm-7add5421a686877e0aa87616b92b1f5a85c6feee.tar.xz |
[NVPTX] Fix off-by-one error when creating the VT list for an SDNode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/NVPTX/ldparam-v4.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/ldparam-v4.ll b/test/CodeGen/NVPTX/ldparam-v4.ll new file mode 100644 index 0000000000..ec306aafe8 --- /dev/null +++ b/test/CodeGen/NVPTX/ldparam-v4.ll @@ -0,0 +1,10 @@ +; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s + +declare <4 x float> @bar() + +define void @foo(<4 x float>* %ptr) { +; CHECK: ld.param.v4.f32 + %val = tail call <4 x float> @bar() + store <4 x float> %val, <4 x float>* %ptr + ret void +} |