HomePhabricator

[PowerPC] Exploit VSX rounding instrs for rint

Authored by qiucf on Feb 13 2020, 4:59 AM.

Description

[PowerPC] Exploit VSX rounding instrs for rint

Exploit native VSX rounding instruction, x(v|s)r(d|s)pic, which does
rounding using current rounding mode.

According to C standard library, rint may raise INEXACT exception while
nearbyint won't.

Reviewed By: lkail

Differential Revision: https://reviews.llvm.org/D72685

Details