diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-08-07 11:14:37 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-08 09:55:12 +0200 |
| commit | 0fa902bbcf33024cc02d0582eb8b17f97d0e6048 (patch) | |
| tree | ba3b113a69c286c9785464310ba396ce0976815b /validation/optim/shift-zext.c | |
| parent | ed1e163b88d6cc2e3435474caf9c1bc5c3764096 (diff) | |
| download | sparse-dev-0fa902bbcf33024cc02d0582eb8b17f97d0e6048.tar.gz | |
simplify (x << S) >> S into x & (-1 >> S)
This transformation is especially usefull when simplifying code
accessing bitfields or for other masking manipulations.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/shift-zext.c')
| -rw-r--r-- | validation/optim/shift-zext.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/shift-zext.c b/validation/optim/shift-zext.c index 070416f3..30409bec 100644 --- a/validation/optim/shift-zext.c +++ b/validation/optim/shift-zext.c @@ -6,7 +6,6 @@ unsigned int foo(unsigned int x) /* * check-name: shift-zext * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-contains: and\\..*%arg1, \\$0xfff |
