llvm.org GIT mirror llvm / release_36 test / CodeGen / NVPTX / weak-global.ll
release_36

Tree @release_36 (Download .tar.gz)

weak-global.ll @release_36raw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s

; CHECK: .weak .global .align 4 .u32 g
@g = common addrspace(1) global i32 zeroinitializer

define i32 @func0() {
  %val = load i32 addrspace(1)* @g
  ret i32 %val
}