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

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Apr 22 19:10:00 GMT 2007



------- Comment #11 from ubizjak at gmail dot com  2007-04-22 20:10 -------
(In reply to comment #10)
> float->double and double->float conversions are new vectorized. For a slightly
> different test:

The test is actually:

--cut here--
float a[16];
int b[16];
double c[16];

void test_fd (void)
{
  int i;

  for (i = 0; i < 16; i++)
    c[i] = (double) a[i];
}

void test_df (void)
{
  int i;

  for (i = 0; i < 16; i++)
    a[i] = (float) c[i];
}

void test_int (void)
{
  int i;

  for (i = 0; i < 16; i++)
    c[i] = (double) b[i];
}
--cut here--


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24659



More information about the Gcc-bugs mailing list