1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; Test to check that Statepoints with X64 far-immediate targets 3*9880d681SAndroid Build Coastguard Worker; are lowered correctly to an indirect call via a scratch register. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-i64:64-f80:128-n8:16:32:64-S128" 6*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-pc-win64" 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine void @test_far_call() gc "statepoint-example" { 9*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test_far_call 10*9880d681SAndroid Build Coastguard Worker; CHECK: pushq %rax 11*9880d681SAndroid Build Coastguard Worker; CHECK: movabsq $140727162896504, %rax 12*9880d681SAndroid Build Coastguard Worker; CHECK: callq *%rax 13*9880d681SAndroid Build Coastguard Worker; CHECK: popq %rax 14*9880d681SAndroid Build Coastguard Worker; CHECK: retq 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Workerentry: 17*9880d681SAndroid Build Coastguard Worker %safepoint_token = call token (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) 18*9880d681SAndroid Build Coastguard Worker ret void 19*9880d681SAndroid Build Coastguard Worker} 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerdeclare token @llvm.experimental.gc.statepoint.p0f_isVoidf(i64, i32, void ()*, i32, i32, ...) 22*9880d681SAndroid Build Coastguard Worker 23