1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -mattr=+ptx43 | FileCheck %s --check-prefixes CHECK,PTX43
2 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 -mattr=+ptx50 | FileCheck %s --check-prefixes CHECK,PTX50
3 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -mattr=+ptx43 | %ptxas-verify %}
4 ; RUN: %if ptxas %{ llc < %s -march=nvptx64 -mcpu=sm_20 -mattr=+ptx50 | %ptxas-verify %}
6 ; PTX43: .weak .global .align 4 .u32 g
7 ; PTX50: .common .global .align 4 .u32 g
8 @g = common addrspace(1) global i32 0, align 4
10 ; CHECK: .weak .const .align 4 .u32 c
11 @c = common addrspace(4) global i32 0, align 4
13 ; CHECK: .weak .shared .align 4 .u32 s
14 @s = common addrspace(3) global i32 0, align 4
17 %1 = load i32, ptr addrspace(1) @g
22 %1 = load i32, ptr addrspace(4) @c
27 %1 = load i32, ptr addrspace(3) @s