[all-commits] [llvm/llvm-project] 168be4: [Clang] Mutate long-double math builtins into f128...

Qiu Chaofan via All-commits all-commits at lists.llvm.org
Fri Jan 15 01:01:28 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 168be4208304e36d3bb156b5c413b340a391383e
      https://github.com/llvm/llvm-project/commit/168be4208304e36d3bb156b5c413b340a391383e
  Author: Qiu Chaofan <qiucofan at cn.ibm.com>
  Date:   2021-01-15 (Fri, 15 Jan 2021)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/math-builtins-long.c

  Log Message:
  -----------
  [Clang] Mutate long-double math builtins into f128 under IEEE-quad

Under -mabi=ieeelongdouble on PowerPC, IEEE-quad floating point semantic
is used for long double. This patch mutates call to related builtins
into f128 version on PowerPC. And in theory, this should be applied to
other targets when their backend supports IEEE 128-bit style libcalls.

GCC already has these mutations except nansl, which is not available on
PowerPC along with other variants (nans, nansf).

Reviewed By: RKSimon, nemanjai

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




More information about the All-commits mailing list