[all-commits] [llvm/llvm-project] 2bcf51: X86: call fp16-conversion functions soft-float on ...

Tim Northover via All-commits all-commits at lists.llvm.org
Thu Nov 10 02:00:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bcf51c7f82ca7752d1bba390a2e0cb5fdd05ca9
      https://github.com/llvm/llvm-project/commit/2bcf51c7f82ca7752d1bba390a2e0cb5fdd05ca9
  Author: Tim Northover <tnorthover at apple.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/fp-round.ll
    M llvm/test/CodeGen/X86/fp-roundeven.ll
    M llvm/test/CodeGen/X86/half-constrained.ll
    A llvm/test/CodeGen/X86/half-darwin.ll

  Log Message:
  -----------
  X86: call fp16-conversion functions soft-float on Darwin.

We've been shipping implementations of these with a soft-float ABI since MacOS
10.10 in 2014 and there's evidence they're in binaries now, so we can't easily
switch to %xmm0.

This emits special libcalls with casts in place to restore the soft-float ABI
for __truncdfhf2, __truncsfhf2, and __extendhfsf2.




More information about the All-commits mailing list