aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cmps-minmax.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-10change testing of signed compares against SMIN or SMAXLuc Van Oostenryck1-4/+4
These tests are written by testing if the comparisons are equal to their expected value: 0 or 1. So, a compare of a compare but such compares of compare have their own simplification which defeats what's tested here. So, rewrite the test to avoid such compares of compare. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2021-01-26cmps: simplify signed compares with SMIN or SMAXLuc Van Oostenryck1-1/+0
Simplify away signed compares with SMIN or SMAX which can be statically be determined to be always true or always false. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2021-01-26cmps: add testcases for simplification of signed comparesLuc Van Oostenryck1-0/+17
Signed compares miss some simplifications/canonicalizations. Add some testcases for them. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>