Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -mtriple=powerpc-apple-darwin9 | FileCheck %s
      2 
      3 ; CHECK: lis r2, ha16(L_x$non_lazy_ptr)
      4 ; CHECK: lis r3, ha16(L_y$non_lazy_ptr)
      5 ; CHECK: lwz r2, lo16(L_x$non_lazy_ptr)(r2)
      6 ; CHECK: lwz r3, lo16(L_y$non_lazy_ptr)(r3)
      7 ; CHECK: L_x$non_lazy_ptr:
      8 ; CHECK: L_y$non_lazy_ptr:
      9 
     10 @x = external hidden global i32
     11 @y = extern_weak hidden global i32
     12 
     13 define i32 @t() nounwind readonly {
     14 entry:
     15         %0 = load i32, i32* @x, align 4
     16         %1 = load i32, i32* @y, align 4
     17         %2 = add i32 %1, %0
     18         ret i32 %2
     19 }
     20