blob: 1afa9e993d670ab7d52de121b454cf745535fb0b [file] [log] [blame]
Reid Spencer1c0c94d2007-04-15 19:11:47 +00001; RUN: llvm-upgrade < %s | llvm-as | \
2; RUN: llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
3; RUN: grep {L_G\$non_lazy_ptr} | wc -l | grep 2
4; RUN: llvm-upgrade < %s | llvm-as | \
5; RUN: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
6; RUN: grep {ldr.*pc} | wc -l | grep 1
Lauro Ramos Venancio0ae4a332007-04-22 00:04:12 +00007; RUN: llvm-upgrade < %s | llvm-as | \
8; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
9; RUN: grep {GOT} | wc -l | grep 1
Evan Cheng02b985c2007-01-19 09:20:23 +000010
11%G = external global int
12
13int %test1() {
14 %tmp = load int* %G
15 ret int %tmp
16}