diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-14 02:22:09 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-14 02:22:09 +0000 |
commit | 2e9add70148eb9d73dc0c825e8fdc9ff27606e2f (patch) | |
tree | 841bb7c042ac137d59fd866efc298c0d9adc6feb /gcc/testsuite/gcc.target/i386 | |
parent | 24b48caa198659664052742a897ffed652878228 (diff) | |
download | gcc-2e9add70148eb9d73dc0c825e8fdc9ff27606e2f.tar.gz |
Add a testcase for PR middle-end/44144.
2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/44144
* gcc.target/i386/pr44144.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target/i386')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr44144.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr44144.c b/gcc/testsuite/gcc.target/i386/pr44144.c new file mode 100644 index 00000000000..0bb95eefb16 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr44144.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -ftree-vectorize -mavx" } */ + +void +foo (char * dest, int xcount, int ycount) +{ + int x, y; + for (y = 0; y < ycount; y++) + for (x = 0; x < xcount; x++) + dest[x + y*2] = 0; +} |