diff options
author | meibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-23 15:07:58 +0000 |
---|---|---|
committer | meibf <meibf@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-23 15:07:58 +0000 |
commit | 13bad991da84974db996d0cea1a414429b429d97 (patch) | |
tree | 36cccd534ebae278208e56df23bfa8a0ca4d769b /gcc/testsuite/gcc.c-torture | |
parent | ccc305ffe28576a6215d68fe41b5070439fd1798 (diff) | |
download | gcc-13bad991da84974db996d0cea1a414429b429d97.tar.gz |
2013-12-23 Bingfeng Mei <bmei@broadcom.com>
PR middle-end/59569
* tree-vect-stmts.c (vectorizable_store): Skip permutation for
consant operand, and add a few missing \n.
* gcc.c-torture/compile/pr59569-1.c: New test.
* gcc.c-torture/compile/pr59569-2.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206179 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr59569-1.c | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr59569-2.c | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr59569-1.c b/gcc/testsuite/gcc.c-torture/compile/pr59569-1.c new file mode 100644 index 00000000000..116c72474cc --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr59569-1.c @@ -0,0 +1,9 @@ +/* PR middle-end/59569 */ +extern char c; + +void +foo (int i, char **j) +{ + while (i) + j[--i] = &c; +} diff --git a/gcc/testsuite/gcc.c-torture/compile/pr59569-2.c b/gcc/testsuite/gcc.c-torture/compile/pr59569-2.c new file mode 100644 index 00000000000..e813b88d857 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr59569-2.c @@ -0,0 +1,6 @@ +/* PR middle-end/59569 */ +void foo (int *a, int b) +{ + for (; b; b--) + a[b] = 1; +} |