1 ; RUN: llc < %s | FileCheck %s
\r
2 ; Test to check that Statepoints with X64 far-immediate targets
\r
3 ; are lowered correctly to an indirect call via a scratch register.
\r
5 target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"
\r
6 target triple = "x86_64-pc-win64"
\r
8 define void @test_far_call() gc "statepoint-example" {
\r
9 ; CHECK-LABEL: test_far_call
\r
11 ; CHECK: movabsq $140727162896504, %rax
\r
12 ; CHECK: callq *%rax
\r
17 %safepoint_token = call i32 (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 0, i32 0, void ()* inttoptr (i64 140727162896504 to void ()*), i32 0, i32 0, i32 0, i32 0)
\r
21 declare i32 @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...)
\r