aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cmp-zext.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-08cmp: simplify zext(x) cmp C --> x cmp CLuc Van Oostenryck1-1/+0
When doing a compare of a zero-extended value against a constant, this extension can be dropped and the comparison done on the original type if the constant is within the original range and signed compares become the corresponding unsigned one. Simplify away these sign-extensions. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-11-05cmp: add testcases for the simplification of comparesLuc Van Oostenryck1-0/+18
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>