[NFC][InstCombine] Tests for negation of sign-/zero- extensions
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 22 Apr 2020 14:30:58 +0000 (17:30 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 22 Apr 2020 14:37:42 +0000 (17:37 +0300)
commita70d2ab323a2877a0d03d9c94aa363f75984f8d5
tree3fc127a5597a92fb41e0bcf8c8b33bba4852ce3b
parent54b3f91d205cbd0103bf83ee97faf13c9a4cdcb3
[NFC][InstCombine] Tests for negation of sign-/zero- extensions

* sext of non-positive can be negated.
* zext of non-negative can be negated.
llvm/test/Transforms/InstCombine/sub-of-negatible.ll