[CodeGen] Fix neutral value of vecreduce fadd in tests (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 29 Oct 2020 19:34:13 +0000 (20:34 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 29 Oct 2020 20:26:14 +0000 (21:26 +0100)
commitfa48ff3fc981783483bcf609798fbb48524300ba
treecd6f8170bd8b46981fb7d69e0d3c3ed538f16ec5
parentb22f111023ba2560d0e9f6b4c3a4aea7c568df1e
[CodeGen] Fix neutral value of vecreduce fadd in tests (NFC)

The neutral value is -0.0, not 0.0. This doesn't matter for "fast"
reductions due to nsz, but does matter for reassoc-only and seq
reductions.

Change tests to mostly use -0.0 where the neutral value was intended,
and add some additional test coverage in some places. Also update
LangRef to use the right value.
llvm/docs/LangRef.rst
llvm/test/CodeGen/AArch64/vecreduce-fadd-legalization-strict.ll
llvm/test/CodeGen/AArch64/vecreduce-fadd-legalization.ll
llvm/test/CodeGen/AArch64/vecreduce-fadd.ll
llvm/test/CodeGen/ARM/vecreduce-fadd-legalization-soft-float.ll
llvm/test/CodeGen/ARM/vecreduce-fadd-legalization-strict.ll
llvm/test/CodeGen/X86/vector-reduce-fadd.ll