2014-04-09 23:39:11 +08:00
|
|
|
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
|
|
|
|
|
|
|
; CHECK: .visible .global .align 4 .u32 g = 42;
|
|
|
|
; CHECK: .visible .global .align 4 .u32 g2 = generic(g);
|
|
|
|
; CHECK: .visible .global .align 4 .u32 g3 = g;
|
2015-04-24 10:57:30 +08:00
|
|
|
; CHECK: .visible .global .align 8 .u32 g4[2] = {0, generic(g)};
|
2015-04-29 01:18:30 +08:00
|
|
|
; CHECK: .visible .global .align 8 .u32 g5[2] = {0, generic(g)+8};
|
2014-04-09 23:39:11 +08:00
|
|
|
|
|
|
|
@g = addrspace(1) global i32 42
|
|
|
|
@g2 = addrspace(1) global i32* addrspacecast (i32 addrspace(1)* @g to i32*)
|
|
|
|
@g3 = addrspace(1) global i32 addrspace(1)* @g
|
2015-04-24 10:57:30 +08:00
|
|
|
@g4 = constant {i32*, i32*} {i32* null, i32* addrspacecast (i32 addrspace(1)* @g to i32*)}
|
2015-04-29 01:18:30 +08:00
|
|
|
@g5 = constant {i32*, i32*} {i32* null, i32* addrspacecast (i32 addrspace(1)* getelementptr (i32, i32 addrspace(1)* @g, i32 2) to i32*)}
|