[NFC][InstCombine] Add more miscompile tests for foldICmpWithLowBitMaskedVal()
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 6 Dec 2018 08:11:20 +0000 (08:11 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 6 Dec 2018 08:11:20 +0000 (08:11 +0000)
commitd9941fa270466d4b9c907c368739ac43328861b7
tree87df69a111a32a18b1cdacc88e756c59e1634d44
parent6a6d77b851b788738f58f7355cd7dfcc13e430ea
[NFC][InstCombine] Add more miscompile tests for foldICmpWithLowBitMaskedVal()

We also have to me aware of vector constants. If at least one element
is -1, we can't transform.

llvm-svn: 348461
llvm/test/Transforms/InstCombine/canonicalize-constant-low-bit-mask-and-icmp-sge-to-icmp-sle.ll
llvm/test/Transforms/InstCombine/canonicalize-constant-low-bit-mask-and-icmp-slt-to-icmp-sgt.ll