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