[all-commits] [llvm/llvm-project] d7be3e: [RISCV] Handle fcopysign(f32, f64) and fcopysign(f...

Luís Marques via All-commits all-commits at lists.llvm.org
Tue Nov 26 06:27:28 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d7be3eab5c0e1598e919973ed68a200997a4734a
      https://github.com/llvm/llvm-project/commit/d7be3eab5c0e1598e919973ed68a200997a4734a
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2019-11-26 (Tue, 26 Nov 2019)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoD.td
    A llvm/test/CodeGen/RISCV/copysign-casts.ll

  Log Message:
  -----------
  [RISCV] Handle fcopysign(f32, f64) and fcopysign(f64, f32)

Summary: Adds tablegen patterns to explicitly handle fcopysign where the
magnitude and sign arguments have different types, due to the sign value casts
being removed the by DAGCombiner. Support for RV32IF follows in a separate
commit. Adds tests for all relevant scenarios except RV32IF.

Reviewers: lenary
Reviewed By: lenary
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70678




More information about the All-commits mailing list