aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-10-22 01:13:02 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-08 02:13:04 +0100
commit2680e82101a685cca986bf619bb1dd21e0573af8 (patch)
treeb6781de3fa05341044feea75e3810a73fd65244f /validation
parent4146aecb9917aaad05c560280089e2557f113126 (diff)
downloadsparse-dev-2680e82101a685cca986bf619bb1dd21e0573af8.tar.gz
cmp: canonicalize unsigned compare with UMAX or UMAX-1
Unsigned compares with UMAX (or UMAX-1) are equivalent to equality tests. These are preferable since it's easier to reason about them in other simplifications. So canonicalize these compares to equality tests. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
-rw-r--r--validation/optim/set-uimm2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/set-uimm2.c b/validation/optim/set-uimm2.c
index efa326f5..9138ae72 100644
--- a/validation/optim/set-uimm2.c
+++ b/validation/optim/set-uimm2.c
@@ -6,7 +6,6 @@ static _Bool setgt_umax(unsigned int a) { return (a > ~1) == (a == ~0); }
/*
* check-name: set-uimm2
* check-command: test-linearize $file
- * check-known-to-fail
*
* check-output-ignore
* check-output-returns: 1