diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-30 12:01:29 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-30 20:38:23 +0200 |
| commit | 6fc095ca97f6a93e151bbc98fde897e867b7c750 (patch) | |
| tree | 3cb7052ed43564c0e70181e225c6145d4d6f666f /validation | |
| parent | 7bba241ec6218e6f72094b7b081cd21443151184 (diff) | |
| parent | a19d607fdac63d50024f239e410c803ad59d77cb (diff) | |
| download | sparse-dev-6fc095ca97f6a93e151bbc98fde897e867b7c750.tar.gz | |
Merge branch 'cse-cast' into tip
* cse: try the next pair instead of keeping the first instruction
* cse: compare casts only by kind a size, not by C type.
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/optim/cse-cmp-next.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/cse-cmp-next.c b/validation/optim/cse-cmp-next.c new file mode 100644 index 00000000..50fdbac0 --- /dev/null +++ b/validation/optim/cse-cmp-next.c @@ -0,0 +1,15 @@ +void foo(int p, int i, int f, int *ref, int *dst, int *src) +{ + if (p) + f = ref[i]; + if (f) + dst[i] = src[i]; +} + +/* + * check-name: cse-cmp-next + * check-command: test-linearize -Wno-decl $file + * + * check-output-ignore + * check-output-pattern(1,2): mul\\. + */ |
