[all-commits] [llvm/llvm-project] 15a178: [PowerPC] Replace subtract-from-zero float in vers...

Andrew Wock via All-commits all-commits at lists.llvm.org
Wed Jun 3 06:45:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 15a1780a10e3ba4573b8c1e02e24d3f0a785e199
      https://github.com/llvm/llvm-project/commit/15a1780a10e3ba4573b8c1e02e24d3f0a785e199
  Author: Andrew Wock <ajwock at gmail.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    A clang/test/CodeGen/builtins-ppc-fma.c
    M clang/test/CodeGen/builtins-ppc-vsx.c

  Log Message:
  -----------
  [PowerPC] Replace subtract-from-zero float in version with fneg in PowerPC special fma compiler builtins

This is a re-revert with a corrected test.

This patch adds a test for the PowerPC fma compiler builtins, some variations
of which negate inputs and outputs. The code to generate IR for these
builtins was untested before this patch.

Originally, the code used the outdated method of subtracting floating point
values from -0.0 as floating point negation. This patch remedies that.

Patch by: Drew Wock <drew.wock at sas.com>
Differential Revision: https://reviews.llvm.org/D76949




More information about the All-commits mailing list