Home | History | Annotate | Download | only in XCore
      1 ; Test to make sure that the 'private' is used correctly.
      2 ;
      3 ; RUN: llc < %s -march=xcore | FileCheck %s
      4 
      5 define private void @foo() {
      6 ; CHECK: .Lfoo:
      7         ret void
      8 }
      9 
     10 @baz = private global i32 4
     11 
     12 define i32 @bar() {
     13 ; CHECK: bar:
     14 ; CHECK: bl .Lfoo
     15 ; CHECK: ldw r0, dp[.Lbaz]
     16         call void @foo()
     17 	%1 = load i32* @baz, align 4
     18         ret i32 %1
     19 }
     20 
     21 ; CHECK: .Lbaz:
     22