[all-commits] [llvm/llvm-project] a9fba2: [X86][ABI] Do not return float/double from x87 reg...

Phoebe Wang via All-commits all-commits at lists.llvm.org
Wed Nov 17 20:31:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9fba2be35db674971382e38b99a31403444d9bf
      https://github.com/llvm/llvm-project/commit/a9fba2be35db674971382e38b99a31403444d9bf
  Author: Phoebe Wang <pengfei.wang at intel.com>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/x86-target-features.c
    M llvm/lib/Target/X86/X86CallingConv.td
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    A llvm/test/CodeGen/X86/no-ret-in-x87-reg.ll

  Log Message:
  -----------
  [X86][ABI] Do not return float/double from x87 registers when x87 is disabled

This is aligned with GCC's behavior.
Also, alias `-mno-fp-ret-in-387` to `-mno-x87`, by which we can fix pr51498.

Reviewed By: nickdesaulniers

Differential Revision: https://reviews.llvm.org/D112143




More information about the All-commits mailing list