1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/NVPTX/global-visibility.ll
2016-01-15 23:57:53 +00:00

17 lines
360 B
LLVM

; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
; PTX does not support .hidden or .protected.
; Make sure we do not emit them.
define hidden void @f_hidden() {
ret void
}
; CHECK-NOT: .hidden
; CHECK: .visible .func f_hidden
define protected void @f_protected() {
ret void
}
; CHECK-NOT: .protected
; CHECK: .visible .func f_protected