diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-01 12:59:01 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-07-01 12:59:01 +0000 |
commit | be08c60533d27f2714a4a88ba91125bcede32a1e (patch) | |
tree | d2d2e2584790ce430942519e0ac6b2b23bc14235 /test/CodeGen/NVPTX/vec-param-load.ll | |
parent | 03e5bb2c87c05ca42f9940e14f22275b136a9883 (diff) | |
download | external_llvm-be08c60533d27f2714a4a88ba91125bcede32a1e.zip external_llvm-be08c60533d27f2714a4a88ba91125bcede32a1e.tar.gz external_llvm-be08c60533d27f2714a4a88ba91125bcede32a1e.tar.bz2 |
[NVPTX] Fix vector loads from parameters that span multiple loads, and fix some typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185332 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/NVPTX/vec-param-load.ll')
-rw-r--r-- | test/CodeGen/NVPTX/vec-param-load.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/vec-param-load.ll b/test/CodeGen/NVPTX/vec-param-load.ll new file mode 100644 index 0000000..a384348 --- /dev/null +++ b/test/CodeGen/NVPTX/vec-param-load.ll @@ -0,0 +1,13 @@ +; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s + +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64" + + +define <16 x float> @foo(<16 x float> %a) { +; Make sure we index into vectors properly +; CHECK: ld.param.v4.f32 {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}, [foo_param_0]; +; CHECK: ld.param.v4.f32 {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}, [foo_param_0+16]; +; CHECK: ld.param.v4.f32 {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}, [foo_param_0+32]; +; CHECK: ld.param.v4.f32 {%f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}, %f{{[0-9]+}}}, [foo_param_0+48]; + ret <16 x float> %a +} |