1 ; RUN: llc < %s | FileCheck %s
2 ; RUN: %if ptxas %{ llc < %s | %ptxas-verify %}
4 target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
5 target triple = "nvptx64-nvidia-cuda"
7 ; Check that we can handle global variables of large integer type.
9 ; (lsb) 0x0102'0304'0506...0F10 (msb)
10 @gv = addrspace(1) externally_initialized global i128 21345817372864405881847059188222722561, align 16
11 ; CHECK: .visible .global .align 16 .b8 gv[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
13 ; Make sure that we do not overflow on large number of elements.
14 ; CHECK: .visible .global .align 1 .b8 large_data[4831838208];
15 @large_data = global [4831838208 x i8] zeroinitializer