diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-16 18:10:08 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-16 21:49:12 +0200 |
| commit | 6489aa6571f5b161594edf5426fc3abac8c33fd0 (patch) | |
| tree | 9d6206c603c5fa6847f4ab7b07cfde29743c857a /validation/optim/shl-lsr0.c | |
| parent | 58480f8a688b2e5152e3b3dc4a92bc3232811e0b (diff) | |
| download | sparse-dev-6489aa6571f5b161594edf5426fc3abac8c33fd0.tar.gz | |
add testcase for ((x >> S) << S) simplification
Add the testcase before doing the simplification.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/shl-lsr0.c')
| -rw-r--r-- | validation/optim/shl-lsr0.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/shl-lsr0.c b/validation/optim/shl-lsr0.c new file mode 100644 index 00000000..851f6284 --- /dev/null +++ b/validation/optim/shl-lsr0.c @@ -0,0 +1,15 @@ +unsigned mask(unsigned x) +{ + return (x >> 15) << 15; +} + +/* + * check-name: shl-lsr0 + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: and\\..*0xffff8000 + * check-output-excludes: lsr\\. + * check-output-excludes: shl\\. + */ |
