This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Thank you for your reply!
I was expecting an output like icc, so I checked the assembler code file ("-S") but didn t see any vector instruction...
You never use the results, so we delete the computations when they are local.
It was because I declared my arrays local to the foo function:
foo () { float a[256], b[256], c[256]; int i; for (i=0; i<256; i++){ a[i] = b[i] + c[i]; } }
the vect output is : loop at vecto.c:9: not vectorized: unsupported data-type
foo () {
int i;
for (i = 0; i < 256; i++) {
}
} for (i=0; i<256; i++)
printf ("%f\n", a[i]);| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |