diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-25 16:05:42 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-08 02:15:20 +0100 |
| commit | 4a5f616407e26efb67013f8267adef2d6e093bf1 (patch) | |
| tree | 65c15a2c9c3920e5473215fb3967892a1a5ec196 /validation/optim/cmp-sext-uimm.c | |
| parent | a1c1b9236d5d4af1681a45ced26f8350bd7721c2 (diff) | |
| download | sparse-dev-4a5f616407e26efb67013f8267adef2d6e093bf1.tar.gz | |
cmp: canonicalize sext(x) cmpu C (with C >= SMAX)
A unsigned compare of a sign-extended value against a value
bigger than the original SMAX is equivalent to a signed
compare against 0.
Canonicalize to the signed compare against 0.
Note: ultimately both forms are just a test of the sign bit.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/cmp-sext-uimm.c')
| -rw-r--r-- | validation/optim/cmp-sext-uimm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/cmp-sext-uimm.c b/validation/optim/cmp-sext-uimm.c index cc89a806..05da042f 100644 --- a/validation/optim/cmp-sext-uimm.c +++ b/validation/optim/cmp-sext-uimm.c @@ -19,7 +19,6 @@ int sext_gtu_m3(int x) { return (sext(x) > (NEG - 3)) == (x < 0); } /* * check-name: cmp-sext-uimm * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-returns: 1 |
