diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-20 23:18:48 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-23 01:08:01 +0200 |
| commit | 29aab3ee2f7ab586b5e476f40d427ff9e77fca22 (patch) | |
| tree | db12ac32fae1b6e69cff0a023320fa89ceefcc96 /validation/optim/simplify-neg-add-cte.c | |
| parent | cfca7b4c6cb48283cb554fc91dc859ff669f2547 (diff) | |
| download | sparse-dev-29aab3ee2f7ab586b5e476f40d427ff9e77fca22.tar.gz | |
unop: add testcases for unop simplifications
Add a few testcases for the simplification of unary operations.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/simplify-neg-add-cte.c')
| -rw-r--r-- | validation/optim/simplify-neg-add-cte.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/simplify-neg-add-cte.c b/validation/optim/simplify-neg-add-cte.c new file mode 100644 index 00000000..4e425096 --- /dev/null +++ b/validation/optim/simplify-neg-add-cte.c @@ -0,0 +1,12 @@ +#define C 3 + +int foo(int x) { return -(x + C) == (-3 - x); } + +/* + * check-name: simplify-neg-add-cte + * check-command: test-linearize -Wno-decl $file + * check-known-to-fail + * + * check-output-ignore + * check-output-contains: ret\\..*\\$1 + */ |
