Relax dwarf line fragments. This fixes a crash in the included testcase.
[oota-llvm.git] / test / CodeGen / Thumb2 / load-global.ll
1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=static | FileCheck %s -check-prefix=STATIC
2 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=dynamic-no-pic | FileCheck %s -check-prefix=DYNAMIC
3 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -relocation-model=pic | FileCheck %s -check-prefix=PIC
4 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -relocation-model=pic | FileCheck %s -check-prefix=LINUX
5
6 @G = external global i32
7
8 define i32 @test1() {
9 ; STATIC: _test1:
10 ; STATIC: .long _G
11
12 ; DYNAMIC: _test1:
13 ; DYNAMIC: .long L_G$non_lazy_ptr
14
15 ; PIC: _test1
16 ; PIC: add r0, pc
17 ; PIC: .long L_G$non_lazy_ptr-(LPC0_0+4)
18
19 ; LINUX: test1
20 ; LINUX: .long G(GOT)
21         %tmp = load i32* @G
22         ret i32 %tmp
23 }