Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=pic -mtriple=armv7-pc-linux-gnueabi | FileCheck %s
      2 
      3 @var = global i32 42
      4 
      5 define i32* @foo() {
      6 ; CHECK:      foo:
      7 ; CHECK:      ldr     r0, .L[[POOL:.*]]
      8 ; CHECK-NEXT: .L[[ADDR:.*]]:
      9 ; CHECK-NEXT: add     r0, pc, r0
     10 ; CHECK-NEXT: bx      lr
     11 
     12 ; CHECK:      .L[[POOL]]:
     13 ; CHECK-NEXT: .long   var-(.L[[ADDR]]+8)
     14 
     15   ret i32* @var
     16 }
     17 
     18 !llvm.module.flags = !{!0}
     19 !0 = !{i32 1, !"PIE Level", i32 2}
     20