diff options
Diffstat (limited to 'test/CodeGen/NVPTX/vector-global.ll')
-rw-r--r-- | test/CodeGen/NVPTX/vector-global.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/NVPTX/vector-global.ll b/test/CodeGen/NVPTX/vector-global.ll new file mode 100644 index 0000000..a463bee --- /dev/null +++ b/test/CodeGen/NVPTX/vector-global.ll @@ -0,0 +1,9 @@ +; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s + +target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64" +target triple = "nvptx64-nvidia-cuda" + +@g1 = external global <4 x i32> ; external global variable +; CHECK: .extern .global .align 16 .b8 g1[16]; +@g2 = global <4 x i32> zeroinitializer ; module-level global variable +; CHECK: .visible .global .align 16 .b8 g2[16]; |