blob: 87785bc3f3f40ed85a4f6f6f91938f3a29cc2560 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -mtriple=i386-darwin-apple -relocation-model=static | grep {call.*12345678}
2; RUN: llc < %s -mtriple=i386-darwin-apple -relocation-model=pic | not grep {call.*12345678}
3; RUN: llc < %s -mtriple=i386-pc-linux -relocation-model=dynamic-no-pic | grep {call.*12345678}
Chris Lattnerff81ebf2009-03-18 00:43:52 +00004
5; Call to immediate is not safe on x86-64 unless we *know* that the
6; call will be within 32-bits pcrel from the dest immediate.
7
Dan Gohman36a09472009-09-08 23:54:48 +00008; RUN: llc < %s -march=x86-64 | grep {call.*\*%rax}
Chris Lattnerff81ebf2009-03-18 00:43:52 +00009
Evan Cheng379e15e2009-03-12 23:01:35 +000010; PR3666
11; PR3773
Evan Cheng65cdee32009-05-20 01:11:00 +000012; rdar://6904453
Evan Cheng379e15e2009-03-12 23:01:35 +000013
14define i32 @main() nounwind {
15entry:
16 %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1]
17 ret i32 %0
18}