diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-26 07:07:06 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-08 02:14:10 +0100 |
| commit | 36329f5318dc9a7017207e93445ac9100904183f (patch) | |
| tree | efbe4931961ea1b3dd238f03d9e56628883f8fd9 /validation/optim/cmp-sext.c | |
| parent | 983964c2ff72392fb7a373990f55cfcb2ba832a0 (diff) | |
| download | sparse-dev-36329f5318dc9a7017207e93445ac9100904183f.tar.gz | |
cmp: simplify sext(x) cmp C --> x cmp C
When doing a compare of a sign-extended value against a constant
the, sign-extension can be dropped and the comparison done on the
original type if the constant is within the original range.
Simplify away these sign-extensions.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/cmp-sext.c')
| -rw-r--r-- | validation/optim/cmp-sext.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/cmp-sext.c b/validation/optim/cmp-sext.c index 2dd60fff..13f4fbdf 100644 --- a/validation/optim/cmp-sext.c +++ b/validation/optim/cmp-sext.c @@ -17,7 +17,6 @@ _Bool cmpgtu_sext(int a) { return (a >= 0x80000000ULL) == (a < 0); } /* * check-name: cmp-sext * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-returns: 1 |
