1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s --check-prefix=PTX32
2 ; RUN: llc < %s -march=nvptx64 -mcpu=sm_20 | FileCheck %s --check-prefix=PTX64
3 ; RUN: %if ptxas && !ptxas-12.0 %{ llc < %s -march=nvptx -mcpu=sm_20 | %ptxas-verify %}
4 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 | %ptxas-verify %}
6 ; PTX32: .visible .global .align 4 .u32 i;
7 ; PTX32: .visible .const .align 4 .u32 j;
8 ; PTX32: .visible .shared .align 4 .u32 k;
9 ; PTX64: .visible .global .align 4 .u32 i;
10 ; PTX64: .visible .const .align 4 .u32 j;
11 ; PTX64: .visible .shared .align 4 .u32 k;
12 @i = addrspace(1) externally_initialized global i32 0, align 4
13 @j = addrspace(4) externally_initialized global i32 0, align 4
14 @k = addrspace(3) global i32 undef, align 4