llvm.org GIT mirror llvm / release_37 test / CodeGen / ARM / private.ll
release_37

Tree @release_37 (Download .tar.gz)

private.ll @release_37

bb46f52
 
8f6f47e
 
8b2b8a1
8f6f47e
 
 
bb46f52
 
 
 
 
aceba31
bb46f52
 
 
7c9c6ed
bb46f52
 
 
; Test to make sure that the 'private' is used correctly.
;
; RUN: llc < %s -mtriple=arm-linux-gnueabi | FileCheck %s
; CHECK: .Lfoo:
; CHECK-LABEL: bar:
; CHECK: bl .Lfoo
; CHECK: .long .Lbaz
; CHECK: .Lbaz:

define private void @foo() {
        ret void
}

@baz = private global i32 4

define i32 @bar() {
        call void @foo()
	%1 = load i32, i32* @baz, align 4
        ret i32 %1
}