diff options
author | Bin Cheng <bin.cheng@arm.com> | 2016-08-09 15:10:55 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2016-08-09 15:10:55 +0000 |
commit | c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023 (patch) | |
tree | 8d652e47658fdbbc7302d3fd156c279ee56f5b21 /gcc/testsuite | |
parent | 42970a179d71e59c317440d0567b003681e915ba (diff) | |
download | gcc-c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023.zip gcc-c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023.tar.gz gcc-c57e78c4beadcaf99cbf0e3d71ec4e99ea0f3023.tar.bz2 |
re PR tree-optimization/33707 (scev not handling unsigned conversion)
gcc/testsuite
PR tree-optimization/33707
* gcc.dg/vect/pr33707.c: New test.
From-SVN: r239292
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr33707.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a5468c..5674f97b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2016-08-09 Bin Cheng <bin.cheng@arm.com> + PR tree-optimization/33707 + * gcc.dg/vect/pr33707.c: New test. + +2016-08-09 Bin Cheng <bin.cheng@arm.com> + PR tree-optimization/pr72772 * gcc.dg/tree-ssa/pr72772.c: New test. diff --git a/gcc/testsuite/gcc.dg/vect/pr33707.c b/gcc/testsuite/gcc.dg/vect/pr33707.c new file mode 100644 index 0000000..b553142 --- /dev/null +++ b/gcc/testsuite/gcc.dg/vect/pr33707.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target vect_int } */ + +int +foo (char *a, unsigned n) +{ + int i; + a[0] = 0; + for (i = 16; i < n; i++) + a[i] = a[i-16]; +} +/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */ |