Chris Lattner | ff81ebf | 2009-03-18 00:43:52 +0000 | [diff] [blame] | 1 | ; 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 Cheng | 379e15e | 2009-03-12 23:01:35 +0000 | [diff] [blame] | 8 | ; PR3666 |
| 9 | ; PR3773 |
| 10 | |
| 11 | define i32 @main() nounwind { |
| 12 | entry: |
| 13 | %0 = call i32 inttoptr (i32 12345678 to i32 (i32)*)(i32 0) nounwind ; <i32> [#uses=1] |
| 14 | ret i32 %0 |
| 15 | } |