[Bug c/60220] New: Vectorization : simple loop : fails to vectorize

2014-02-15 Thread harmeeksingh at gmail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: harmeeksingh at gmail dot com #include #include #define FALSE ((char )0) struct test { int*copy; }; typedef struct test test; void foo(test *__restrict c, unsigned int a, unsigned int num) { unsigned int

[Bug c/60220] Vectorization : simple loop : fails to vectorize

2014-02-17 Thread harmeeksingh at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60220 --- Comment #3 from harmeeksingh at gmail dot com --- It still does not vectorise after adding the recomended flag. But rewriting the code the following way does. This is a bizare behavioir . My tests show that this is not an issue of gcc

[Bug c/61938] New: Vectorization not happening .

2014-07-28 Thread harmeeksingh at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: harmeeksingh at gmail dot com $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share

[Bug tree-optimization/61938] Vectorization not happening .

2014-07-29 Thread harmeeksingh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938 --- Comment #3 from harmeeksingh at gmail dot com --- #include #define VEC 1024 typedef long int int64; typedef int int32; void foo (int arraysize, int *__restrict result, int *__restrict selectvector

[Bug tree-optimization/61938] Vectorization not happening .

2014-07-30 Thread harmeeksingh at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61938 --- Comment #6 from harmeeksingh at gmail dot com --- Equivalent code when written by hand where tmp is a intermediate array . The compiler vectorizes both loops. int k, i; /* vectorize the compares */ for (i=0; i < arraysize;