diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-05-04 15:47:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-05-04 08:47:25 -0700 |
commit | 2147c71c10b3441840bed9d1ef7ee5eb503e8113 (patch) | |
tree | 63a4b6bfbf9c88a0625283367e3485c454e33e20 /gcc/testsuite | |
parent | 85912441e43f7cf1fae2a156198362fb0cb1da81 (diff) | |
download | gcc-2147c71c10b3441840bed9d1ef7ee5eb503e8113.zip gcc-2147c71c10b3441840bed9d1ef7ee5eb503e8113.tar.gz gcc-2147c71c10b3441840bed9d1ef7ee5eb503e8113.tar.bz2 |
Handle the same VALUE for true dependence.
gcc/
2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/43671
* alias.c (true_dependence): Handle the same VALUE in x and mem.
(canon_true_dependence): Likewise.
(write_dependence_p): Likewise.
gcc/testsuite/
2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/43671
* gcc.target/i386/pr43671.c: New.
From-SVN: r159033
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr43671.c | 27 |
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d43de64..5822278 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-05-04 H.J. Lu <hongjiu.lu@intel.com> + + PR middle-end/43671 + * gcc.target/i386/pr43671.c: New. + 2010-05-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/43705 diff --git a/gcc/testsuite/gcc.target/i386/pr43671.c b/gcc/testsuite/gcc.target/i386/pr43671.c new file mode 100644 index 0000000..958eaff --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr43671.c @@ -0,0 +1,27 @@ +/* { dg-do run } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-mtune=i686 -O1 -fpeel-loops -fschedule-insns2 -ftree-vectorize -fsched2-use-superblocks" } */ + +extern void abort (); + +int main () +{ + struct { + char ca[16]; + } s; + int i; + + for (i = 0; i < 16; i++) + { + s.ca[i] = 5; + } + + + for (i = 0; i < 16; i++) + { + if (s.ca[i] != 5) + abort (); + } + + return 0; +} |