------- Comment #2 from pinskia at gcc dot gnu dot org  2006-09-15 05:35 -------
3.2.3 on x86 with -msse (since we did not have generic vectors until 3.3)
works.
And 3.3.3 fails (even with -msse).
Note a better testcase is something like:
#include <stdlib.h>
__attribute__((vector_size(16))) int a = {1, 2};
int c = 1;
__attribute__((vector_size(16))) int b = {1, 2};

int main(void)
{
  int *b = (int*)&a;
  if (b[0] != 1)
    abort ();
  if (b[1] != 2)
    abort ();
  if (b[2] != 0)
    abort ();
  if (b[3] != 0)
    abort ();
  return 0;
}


-- 


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

Reply via email to