diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-01-26 00:24:13 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2021-01-26 22:49:11 +0100 |
| commit | d7af8d6cc223559ece17c435dcdbd04f9ef74d3d (patch) | |
| tree | 4e0959b50e3e66dad9f7a25a061914759742b02a /validation | |
| parent | 33fda43cf26ce3e312e6cb4882821117b68056a2 (diff) | |
| download | sparse-dev-d7af8d6cc223559ece17c435dcdbd04f9ef74d3d.tar.gz | |
cmpu: fix canonicalization of unsigned (x {<,>=} C) --> (x {<=,>} C-1)
In Sparse, the PSEUDO_VALUEs are required to be truncated at their
effective size. For example, for a 32-bit instruction and Sparse using
64-bit integers, a pseudo of -1 must contain the value 0x00000000ffffffff,
not 0xffffffffffffffff.
Add the missing truncation in the canonicalization here.
Fixes: c355e5ac5dce35f3d95c30cd5e2e9a5074c38437
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
0 files changed, 0 insertions, 0 deletions
