This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66675] Could improve vector lane folding style operations.
- From: "ramana at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jun 2015 21:06:21 +0000
- Subject: [Bug tree-optimization/66675] Could improve vector lane folding style operations.
- Auto-submitted: auto-generated
- References: <bug-66675-4 at http dot gcc dot gnu dot org/bugzilla/>
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.