llvm.org GIT mirror llvm / release_35@215010 test / CodeGen / NVPTX / addrspacecast-gvar.ll
release_35@215010

Tree @release_35@215010 (Download .tar.gz)

addrspacecast-gvar.ll @release_35@215010raw · history · blame

1
2
3
4
5
6
7
8
9
; 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;

@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