1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK: // .weak foo 4*9880d681SAndroid Build Coastguard Worker; CHECK: .weak .func foo 5*9880d681SAndroid Build Coastguard Workerdefine weak void @foo() { 6*9880d681SAndroid Build Coastguard Worker ret void 7*9880d681SAndroid Build Coastguard Worker} 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Worker; CHECK: // .weak baz 10*9880d681SAndroid Build Coastguard Worker; CHECK: .weak .func baz 11*9880d681SAndroid Build Coastguard Workerdefine weak_odr void @baz() { 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker; CHECK: .visible .func bar 16*9880d681SAndroid Build Coastguard Workerdefine void @bar() { 17*9880d681SAndroid Build Coastguard Worker ret void 18*9880d681SAndroid Build Coastguard Worker} 19