diff options
author | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-09-09 22:38:58 +0800 |
---|---|---|
committer | Qiu Chaofan <qiucofan@cn.ibm.com> | 2020-09-09 22:40:58 +0800 |
commit | 88ff4d2ca1a0aaed6888152042256a0ef3fe863d (patch) | |
tree | c5de82cef7b38c3e226e290a8bc4d7d2bd3f310f /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 649bde488ce9b5c1143e718247f0eda461300a77 (diff) | |
download | llvm-88ff4d2ca1a0aaed6888152042256a0ef3fe863d.zip llvm-88ff4d2ca1a0aaed6888152042256a0ef3fe863d.tar.gz llvm-88ff4d2ca1a0aaed6888152042256a0ef3fe863d.tar.bz2 |
[PowerPC] Fix STRICT_FRINT/STRICT_FNEARBYINT lowering
In standard C library, both rint and nearbyint returns rounding result
in current rounding mode. But nearbyint never raises inexact exception.
On PowerPC, x(v|s)r(d|s)pic may modify FPSCR XX, raising inexact
exception. So we can't select constrained fnearbyint into xvrdpic.
One exception here is xsrqpi, which will not raise inexact exception, so
fnearbyint f128 is okay here.
Reviewed By: uweigand
Differential Revision: https://reviews.llvm.org/D87220
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions