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

Andrew Wock via All-commits all-commits at lists.llvm.org
Fri Apr 3 11:59:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ba87430cadb2d5d0ee8e4b75101d7abcf6b321bf
      https://github.com/llvm/llvm-project/commit/ba87430cadb2d5d0ee8e4b75101d7abcf6b321bf
  Author: Andrew Wock <ajwock at gmail.com>
  Date:   2020-04-03 (Fri, 03 Apr 2020)

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

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

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