diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2013-09-19 12:51:46 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2013-09-19 12:51:46 +0000 |
commit | 3917535b1af06f03dc0150fc956fb05218a78292 (patch) | |
tree | dbd5534b92c6e35aa533e592953309e4099018ec /test/CodeGen/NVPTX | |
parent | 5df37dab763ce377095389c4ea1cff88db369954 (diff) | |
download | external_llvm-3917535b1af06f03dc0150fc956fb05218a78292.zip external_llvm-3917535b1af06f03dc0150fc956fb05218a78292.tar.gz external_llvm-3917535b1af06f03dc0150fc956fb05218a78292.tar.bz2 |
[NVPTX] Support constant vector globals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/NVPTX')
-rw-r--r-- | test/CodeGen/NVPTX/constant-vectors.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/constant-vectors.ll b/test/CodeGen/NVPTX/constant-vectors.ll new file mode 100644 index 0000000..7a68756 --- /dev/null +++ b/test/CodeGen/NVPTX/constant-vectors.ll @@ -0,0 +1,7 @@ +; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s + +target triple = "nvptx-nvidia-cuda" + +; CHECK: .visible .global .align 16 .b8 sphPosArr[80] = {0, 0, 192, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 64, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 192, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63}; +@sphPosArr = constant [5 x <4 x float>] [<4 x float> <float -6.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, <4 x float> <float -3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, <4 x float> <float 3.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, <4 x float> <float 6.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>], align 16 + |