diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-06-09 16:30:14 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-06-09 16:30:14 +0000 |
commit | ff0c99b0177ddb091aea24576559dad6d00630ba (patch) | |
tree | 39c44352e7fdc4ba181b9d54505fab553aee78f3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 87cd16a86efbdfe0c8dd37645ac0d4bc5d6aeb86 (diff) | |
download | llvm-ff0c99b0177ddb091aea24576559dad6d00630ba.zip llvm-ff0c99b0177ddb091aea24576559dad6d00630ba.tar.gz llvm-ff0c99b0177ddb091aea24576559dad6d00630ba.tar.bz2 |
[NFC][InstCombine] Revisit canonicalize-constant-low-bit-mask-and-icmp-s* tests in preparatio for PR42198.
The `icmp sgt`/`icmp sle` variants are, too, miscompiles:
https://rise4fun.com/Alive/JFNP
https://rise4fun.com/Alive/jHvL
A precondition 'x != 0' was forgotten by me.
While ensuring test coverage for `-1`, also add test coverage
for `0` mask. Mask `0` is allowed for all the folds,
mask `-1` is allowed for all the folds with unsigned `icmp` pred.
Constant mask `0` is missed though.
https://bugs.llvm.org/show_bug.cgi?id=42198
llvm-svn: 362910
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions