[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / NVPTX / weak-global.ll
1 ; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2
3 ; CHECK: .weak .global .align 4 .u32 g
4 @g = common addrspace(1) global i32 zeroinitializer
5
6 define i32 @func0() {
7   %val = load i32, i32 addrspace(1)* @g
8   ret i32 %val
9 }