diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-11-30 13:05:44 +0000 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2012-11-30 13:05:44 +0000 |
commit | 812410f2d18e52df801a8fcac20848dee9052021 (patch) | |
tree | ce54439ec690259b1963ac6df190c0da1c6a6f36 /clang/lib/Frontend/Warnings.cpp | |
parent | 5a16af86387230c59c8f4ab123964bbd2112a565 (diff) | |
download | bcm5719-llvm-812410f2d18e52df801a8fcac20848dee9052021.tar.gz bcm5719-llvm-812410f2d18e52df801a8fcac20848dee9052021.zip |
This patch fixes the Altivec addend construction for the fused multiply-add
instruction (vmaddfp) to conform with IEEE to ensure the sign of a zero
result when resulting product is -0.0.
The -0.0 vector addend to vmaddfp is generated by a creating a vector
with full bits sets and then shifting each elements by 31-bits to the
left, resulting in a vector of 0x80000000 (or -0.0 as float).
The 'buildvec_canonicalize.ll' was adjusted to reflect this change and
the 'vec_mul.ll' was complemented with the float vector multiplication
test.
llvm-svn: 168998
Diffstat (limited to 'clang/lib/Frontend/Warnings.cpp')
0 files changed, 0 insertions, 0 deletions