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/66675] Could improve vector lane folding style operations.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66675

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
The GCC vector speak variant is as below.


typedef char v8qi __attribute__ ((vector_size (8)));


int main(int argc, char *argv[])
{
  v8qi a = {argc, 1, 2, 3, 4, 5, 6, 7};
  v8qi b = {0, 1, 2, 3, 4, 5, 6, 7};
  v8qi c = a + b;    
  return c[0];
}

True on both arm and aarch64 - I haven't checked other targets.


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