blob: b22b65eaea270d605b9260da0a75944f574a9c02 [file] [log] [blame]
Chris Lattnerff81ebf2009-03-18 00:43:52 +00001; RUN: llvm-as < %s | llc -march=x86 | grep {call.*12345678}
Evan Cheng65cdee32009-05-20 01:11:00 +00002; RUN: llvm-as < %s | llc -march=x86 -relocation-model=pic | not grep {call.*12345678}
Chris Lattnerff81ebf2009-03-18 00:43:52 +00003
4; Call to immediate is not safe on x86-64 unless we *know* that the
5; call will be within 32-bits pcrel from the dest immediate.
6
7; RUN: llvm-as < %s | llc -march=x86-64 | grep {call.*\*%rax}
8
Evan Cheng379e15e2009-03-12 23:01:35 +00009; PR3666
10; PR3773
Evan Cheng65cdee32009-05-20 01:11:00 +000011; rdar://6904453
Evan Cheng379e15e2009-03-12 23:01:35 +000012
13define i32 @main() nounwind {
14entry:
15 %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1]
16 ret i32 %0
17}