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/shl-lsr.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/shl-lsr.c')
| -rw-r--r-- | validation/optim/shl-lsr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/validation/optim/shl-lsr.c b/validation/optim/shl-lsr.c index 1ab2c48f..4f4b7e66 100644 --- a/validation/optim/shl-lsr.c +++ b/validation/optim/shl-lsr.c @@ -6,7 +6,6 @@ unsigned mask(unsigned x) /* * check-name: shl-lsr * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-contains: and\\..*0x1ffff |
