[PowerPC] Only legalize FNEARBYINT with unsafe fp math
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 2 Jan 2020 19:37:34 +0000 (13:37 -0600)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 2 Jan 2020 19:45:54 +0000 (13:45 -0600)
commit781b78a3610886e265f08d6de625bfe19e3dd8cf
treee4128feaccd2b6b1fea367cbbc66a840ac2ce554
parentaf340ae19f4bb109c63ca41663c97c45a39f512e
[PowerPC] Only legalize FNEARBYINT with unsafe fp math

Commit 0f0330a78709 legalized these nodes on PPC without consideration of
unsafe math which means that we get inexact exceptions raised for nearbyint.
Since this doesn't conform to the standard, switch this legalization to depend
on unsafe fp math.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/scalar-rounding-ops.ll
llvm/test/CodeGen/PowerPC/vector-constrained-fp-intrinsics.ll