[RISCV] Add test cases for conditional add/sub. NFC
authorCraig Topper <craig.topper@sifive.com>
Wed, 4 Aug 2021 15:49:17 +0000 (08:49 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 4 Aug 2021 18:37:39 +0000 (11:37 -0700)
commit2dad7979909a02d480514f37c9e55f752c0aa0a5
tree156acba79d51dfbd74d83dae8490cdbbd9f8c274
parent14f443030c1acc4346589aee3c1c532dc00eae3a
[RISCV] Add test cases for conditional add/sub. NFC

InstCombine canonicalizes c ? (x+y) : x to (c ? y : 0) + x. It
does the same for and/or/xor. We already reverse this transform
for those, but don't do add/sub yet.
llvm/test/CodeGen/RISCV/select-binop-identity.ll