1; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 -mattr=+ptx43 | FileCheck %s --check-prefix PTX43 2; RUN: llc < %s -mtriple=nvptx64 -mcpu=sm_20 -mattr=+ptx50 | FileCheck %s --check-prefix PTX50 3; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 -mattr=+ptx43 | %ptxas-verify %} 4; RUN: %if ptxas %{ llc < %s -mtriple=nvptx64 -mcpu=sm_20 -mattr=+ptx50 | %ptxas-verify %} 5 6; PTX43: .weak .global .align 4 .u32 g 7; PTX50: .common .global .align 4 .u32 g 8@g = common addrspace(1) global i32 zeroinitializer 9 10define i32 @func0() { 11 %val = load i32, ptr addrspace(1) @g 12 ret i32 %val 13} 14