summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2021-07-12 05:49:12 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2021-07-12 06:11:27 -0500
commit84e429693fe5f225fe68b9dd54043cddb9c4cd4c (patch)
tree9142289563a70082f599e97399bd98bd255e8292 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8bbf2f7a44f907d54ad39a98d166a17be61dd66f (diff)
[PowerPC] Fix rounding mode for vec_round in altivec.h
The function is supposed to be the equivalent of rint() (as in round to nearest, ties to even) rather than round() (round to nearest, ties away from zero). In fact, the instruction we emit without VSX is vrfin which is correct. However, with VSX we emit xvrspi which is the equivalent of round() and therefore incorrect. Since there is no equivalent VSX instruction, simply use vrfin regardless of availability of VSX.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions