remove the "old" at&t style asmprinter. Unfortunately, most of the
[llvm/avr.git] / test / CodeGen / Thumb2 / load-global.ll
blob4fd4525b0455553f93d0ff068d536cbd53858320
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
6 @G = external global i32
8 define i32 @test1() {
9 ; STATIC: _test1:
10 ; STATIC: .long _G
12 ; DYNAMIC: _test1:
13 ; DYNAMIC: .long L_G$non_lazy_ptr
15 ; PIC: _test1
16 ; PIC: add r0, pc
17 ; PIC: .long L_G$non_lazy_ptr-(LPC0+4)
19 ; LINUX: test1
20 ; LINUX: .long G(GOT)
21         %tmp = load i32* @G
22         ret i32 %tmp