diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-02-02 01:32:50 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-02-02 01:32:50 +0000 |
commit | 55c6682ae22910fb73b0e03e25cba68c0f99faa9 (patch) | |
tree | c252a0f41a4bc33d408f0270e2acf1b981bb6896 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | cad7994c3b4f023767fbc5cf66ed4eeee940a149 (diff) | |
download | bcm5719-llvm-55c6682ae22910fb73b0e03e25cba68c0f99faa9.tar.gz bcm5719-llvm-55c6682ae22910fb73b0e03e25cba68c0f99faa9.zip |
[X86] Don't force Nearest-Even rounding for VCVTPS2PH, use MXCSR.
Officially, we don't acknowledge non-default configurations of MXCSR,
as getting there would require usage of the FENV_ACCESS pragma (at
least insofar as rounding mode is concerned).
We don't support the pragma, so we can assume that the default
rounding mode - round to nearest, ties to even - is always used.
However, it's inconsistent with the rest of the instruction set,
where MXCSR is always effective (unless otherwise specified).
Also, it's an unnecessary obstacle to the few brave souls that use
fenv.h with LLVM.
Avoid the hard-coded rounding mode for fp_to_f16; use MXCSR instead.
llvm-svn: 259448
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions