brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · b5577c0 Raw
27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -tailcallopt -mattr=+sse2 -mtriple=x86_64-apple-darwin | FileCheck %s3 4; Check that x86-64 tail calls support x86_fp80 and v2f32 types. (Tail call5; 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: ## %entry13; CHECK-NEXT:    subq $40, %rsp14; CHECK-NEXT:    .cfi_def_cfa_offset 4815; CHECK-NEXT:    movq {{[0-9]+}}(%rsp), %rax16; CHECK-NEXT:    movq %rax, {{[0-9]+}}(%rsp)17; CHECK-NEXT:    fld118; CHECK-NEXT:    fstpt {{[0-9]+}}(%rsp)19; CHECK-NEXT:    movaps {{.*#+}} xmm0 = [1.0E+0,1.0E+0,u,u]20; CHECK-NEXT:    addq $24, %rsp21; CHECK-NEXT:    jmp _tailcallee ## TAILCALL22entry:23  %tmp = fpext float 1.000000e+00 to x86_fp8024	%tmp2 = tail call fastcc double @tailcallee( x86_fp80 %tmp,  <2 x float> <float 1.000000e+00, float 1.000000e+00>)25	ret double %tmp226}27