This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/24659] Conversions are not vectorized



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]