This patch handles
(icmp eq/ne (shl const2, A), const1) -> (icmp eq/ne A, log2(const1) - log2(const2)).
I wrote this patch for the equality comparison.
For other comparison operators, it needs to handled.
In the test cases I considered all the boundary conditions for the 32 bit integer and handled them.
Please help in reviewing this patch.
Any comments/suggestions are most welcomed.
Thanks,
Sonam.