blob: 3f7e16934db9947083d12e5195205f22280b1580 [file] [log] [blame]
Reid Spencereb1d74e2007-04-16 17:36:08 +00001; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
2; RUN: -o %t -f
3; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
Dan Gohman28beeea2007-08-15 13:36:28 +00004; RUN: grep piclabel %t | count 3
5; RUN: grep PLT %t | count 1
Anton Korobeynikov7f705592007-01-12 19:20:47 +00006
Reid Spencere3ff5ad2007-01-26 08:25:06 +00007@ptr = external global i32*
Anton Korobeynikov7f705592007-01-12 19:20:47 +00008
Reid Spencere3ff5ad2007-01-26 08:25:06 +00009define void @foo() {
Anton Korobeynikov7f705592007-01-12 19:20:47 +000010entry:
11 %ptr = malloc i32, i32 10
12 ret void
13}
14