forked from OSchip/llvm-project
16ff5fea87
Summary: This patch teaches ConstantFolding to constant fold both scalar and vector variants of llvm.smul.fix and llvm.smul.fix.sat. As described in the LangRef rounding is unspecified for these instrinsics. If the result cannot be represented exactly the default behavior in ConstantFolding is to round down towards negative infinity. If a target has a preferred rounding that is different some kind of target hook would be needed (same strategy as used by the SelectionDAG legalizer). Reviewers: nikic, leonardchan, RKSimon Reviewed By: leonardchan Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63385 llvm-svn: 363811 |
||
---|---|---|
.. | ||
bitcount.ll | ||
cast-vector.ll | ||
fneg.ll | ||
funnel-shift.ll | ||
gep-constanfolding-error.ll | ||
gep-zeroinit-vector.ll | ||
gep.ll | ||
min-max.ll | ||
saturating-add-sub.ll | ||
smul-fix-sat.ll | ||
smul-fix.ll | ||
timeout.ll | ||
vector-undef-elts.ll | ||
vectorgep-crash.ll |