blob: 8233d8698ab04f1ca3b1f3f39fd113981aab3f02 [file] [log] [blame]
Chris Lattnerff81ebf2009-03-18 00:43:52 +00001; RUN: llvm-as < %s | llc -march=x86 | grep {call.*12345678}
2
3; Call to immediate is not safe on x86-64 unless we *know* that the
4; call will be within 32-bits pcrel from the dest immediate.
5
6; RUN: llvm-as < %s | llc -march=x86-64 | grep {call.*\*%rax}
7
Evan Cheng379e15e2009-03-12 23:01:35 +00008; PR3666
9; PR3773
10
11define i32 @main() nounwind {
12entry:
13 %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1]
14 ret i32 %0
15}