Fix PR3666: isel calls to constant addresses.
[oota-llvm.git] / test / CodeGen / X86 / call-imm.ll
1 ; RUN: llvm-as < %s | llc -march=x86    | grep call | grep 12345678
2 ; RUN: llvm-as < %s | llc -march=x86-64 | grep call | grep 12345678
3 ; PR3666
4
5 define i32 @main() nounwind {
6 entry:
7         %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind             ; <i32> [#uses=1]
8         ret i32 %0
9 }