summaryrefslogtreecommitdiff
path: root/test/CodeGen/NVPTX/constant-vectors.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/NVPTX/constant-vectors.ll')
-rw-r--r--test/CodeGen/NVPTX/constant-vectors.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/constant-vectors.ll b/test/CodeGen/NVPTX/constant-vectors.ll
new file mode 100644
index 0000000000000..208c2d970f318
--- /dev/null
+++ b/test/CodeGen/NVPTX/constant-vectors.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
+
+target triple = "nvptx-nvidia-cuda"
+
+; CHECK: .visible .global .align 16 .b8 testArray[8] = {0, 1, 2, 3, 4, 5, 6, 7};
+@testArray = constant [2 x <4 x i8>] [<4 x i8> <i8 0, i8 1, i8 2, i8 3>, <4 x i8> <i8 4, i8 5, i8 6, i8 7>], align 16