[X86] Add test for `~x & x` -> `0` and `~x + x` -> `-1` in DAG Lowering; NFC
authorNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 2 Mar 2023 07:30:44 +0000 (01:30 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 7 Mar 2023 02:30:09 +0000 (20:30 -0600)
commitc622c1383abbb6c637b5b7690f020ec1729295d5
treee0f6f4b066832ad326ab983563ea22068dc2880f
parent5a3d9e06170a8a8aadee4a6db1ed61732537d076
[X86] Add test for `~x & x` -> `0` and `~x + x` -> `-1` in DAG Lowering; NFC

Differential Revision: https://reviews.llvm.org/D145142
llvm/test/CodeGen/X86/combine-add.ll
llvm/test/CodeGen/X86/combine-and.ll