2014-06-28 02:35:10 +08:00
|
|
|
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
|
|
|
|
|
2014-12-02 05:16:17 +08:00
|
|
|
; CHECK: // .weak foo
|
2014-06-28 02:35:10 +08:00
|
|
|
; CHECK: .weak .func foo
|
|
|
|
define weak void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-12-02 05:16:17 +08:00
|
|
|
; CHECK: // .weak baz
|
|
|
|
; CHECK: .weak .func baz
|
|
|
|
define weak_odr void @baz() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2014-06-28 02:35:10 +08:00
|
|
|
; CHECK: .visible .func bar
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|