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 /validation/optim | |
| 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 'validation/optim')
| -rw-r--r-- | validation/optim/zext-and.c | 1 | ||||
| -rw-r--r-- | validation/optim/zext-and1.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/validation/optim/zext-and.c b/validation/optim/zext-and.c index 2f4f3c80..a3153bf7 100644 --- a/validation/optim/zext-and.c +++ b/validation/optim/zext-and.c @@ -6,7 +6,6 @@ unsigned int foo(unsigned char x) /* * check-name: zext-and * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: and\\. diff --git a/validation/optim/zext-and1.c b/validation/optim/zext-and1.c index 2ad01103..c99a0e62 100644 --- a/validation/optim/zext-and1.c +++ b/validation/optim/zext-and1.c @@ -6,7 +6,6 @@ unsigned int bar(unsigned char x) /* * check-name: zext-and1 * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-contains: and\\..*\\$1 |
