This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24659] Conversions are not vectorized
- From: "stuart at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2007 18:30:43 -0000
- Subject: [Bug tree-optimization/24659] Conversions are not vectorized
- References: <bug-24659-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from stuart at apple dot com 2007-01-05 18:30 -------
I ran the testcase through ICC, and it unrolled the loops without vectorizing
them. However, making the loops indefinite gets us the desired, vectorized
result. Here is the modified, indefinite loop version of the testcase:
void test_fp (float *a, double *b, int count)
{
int i;
for (i = 0; i < count; i++)
b[i] = (double) a[i];
}
void test_int (int *a, double *b, int count)
{
int i;
for (i = 0; i < count; i++)
b[i] = (double) a[i];
}
(Note to Apple: this is Radar 4079267)
--
stuart at apple dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stuart at apple dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24659