: 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
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
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
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
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;