[InstCombine] Add additional test coverage for D123374
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 18 Apr 2022 12:13:35 +0000 (13:13 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 18 Apr 2022 12:25:24 +0000 (13:25 +0100)
commit9cae511aa15af1491823b74ca84a3c88afe0cbab
tree0d9794ad22c7d665dcd4463925d790bda72ba4f1
parent315d792130258a9b7250494be8d002ebb427b08f
[InstCombine] Add additional test coverage for D123374

More basic test coverage for the fold: (A & 2^C1) + A => A & (2^C1 - 1) iff bit C1 in A is a sign bit
llvm/test/Transforms/InstCombine/add-mask.ll [new file with mode: 0644]