1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-macosx" 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdeclare x86_fp80 @x1(i32) nounwind 5*9880d681SAndroid Build Coastguard Workerdeclare i32 @x2(x86_fp80, x86_fp80) nounwind 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker; Keep track of the return value. 8*9880d681SAndroid Build Coastguard Worker; CHECK: test1 9*9880d681SAndroid Build Coastguard Worker; CHECK: x1 10*9880d681SAndroid Build Coastguard Worker; Pass arguments on the stack. 11*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: movq %rsp, [[RCX:%r..]] 12*9880d681SAndroid Build Coastguard Worker; Copy constant-pool value. 13*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fldl LCPI 14*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fstpt 16([[RCX]]) 15*9880d681SAndroid Build Coastguard Worker; Copy x1 return value. 16*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: fstpt ([[RCX]]) 17*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: x2 18*9880d681SAndroid Build Coastguard Workerdefine i32 @test1() nounwind uwtable ssp { 19*9880d681SAndroid Build Coastguard Workerentry: 20*9880d681SAndroid Build Coastguard Worker %call = call x86_fp80 (...) bitcast (x86_fp80 (i32)* @x1 to x86_fp80 (...)*)(i32 -1) 21*9880d681SAndroid Build Coastguard Worker %call1 = call i32 @x2(x86_fp80 %call, x86_fp80 0xK401EFFFFFFFF00000000) 22*9880d681SAndroid Build Coastguard Worker ret i32 %call1 23*9880d681SAndroid Build Coastguard Worker} 24*9880d681SAndroid Build Coastguard Worker 25