Cherry-pick fix to FP trunctation routine

Bug: 7342860
Bug: 20822382

Cherry-pick r240450 that fixes a bug in FP truncation where
2^{bit-width-of-dst-type} does not get converted to +inf.

Change-Id: Ia6732923383c0ebd49f16512a12ace59cf78fec5
5 files changed