1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -tailcallopt -mattr=+sse2 -mtriple=x86_64-apple-darwin | FileCheck %s 3 4; Check that x86-64 tail calls support x86_fp80 and v2f32 types. (Tail call 5; calling convention out of sync with standard c calling convention on x86_64) 6; Bug 4278. 7 8declare fastcc double @tailcallee(x86_fp80, <2 x float>) 9 10define fastcc double @tailcall() { 11; CHECK-LABEL: tailcall: 12; CHECK: ## %bb.0: ## %entry 13; CHECK-NEXT: subq $40, %rsp 14; CHECK-NEXT: .cfi_def_cfa_offset 48 15; CHECK-NEXT: movq {{[0-9]+}}(%rsp), %rax 16; CHECK-NEXT: movq %rax, {{[0-9]+}}(%rsp) 17; CHECK-NEXT: fld1 18; CHECK-NEXT: fstpt {{[0-9]+}}(%rsp) 19; CHECK-NEXT: movaps {{.*#+}} xmm0 = [1.0E+0,1.0E+0,u,u] 20; CHECK-NEXT: addq $24, %rsp 21; CHECK-NEXT: jmp _tailcallee ## TAILCALL 22entry: 23 %tmp = fpext float 1.000000e+00 to x86_fp80 24 %tmp2 = tail call fastcc double @tailcallee( x86_fp80 %tmp, <2 x float> <float 1.000000e+00, float 1.000000e+00>) 25 ret double %tmp2 26} 27