diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-08-07 00:53:06 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-23 13:11:20 +0200 |
| commit | 5da4e09b47011d11c3ed8e1915a316ec8cf8897f (patch) | |
| tree | fb29fb9bb7eb0420038ee034e382919bce78c5df /sparsei | |
| parent | 780d796a478f686379489fc2e02f932e7dcd67e9 (diff) | |
| download | sparse-dev-5da4e09b47011d11c3ed8e1915a316ec8cf8897f.tar.gz | |
cast: simplify AND(ZEXT(x,M),N)
An OP_AND with a constant value following a OP_ZEXT can often
be simplified:
* the constant mask can be made smaller
* the whole masking is redundant and can be removed.
Do these two simplifications depending on the initial mask
and the sizes of the instructions.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'sparsei')
0 files changed, 0 insertions, 0 deletions
