[Bug target/81143] New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81143 --- Comment #5 from Peter Bergner --- Author: bergner Date: Mon Apr 2 15:24:01 2018 New Revision: 259011 URL: https://gcc.gnu.org/viewcvs?rev=259011&root=gcc&view=rev Log: Backport from mainline 2018-02-08 Peter Bergner PR target/81143 * gcc.target/powerpc/pr79799-2.c: Use __LITTLE_ENDIAN__. Modified: branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gcc.target/powerpc/pr79799-2.c
[Bug target/81143] New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81143 Peter Bergner changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #4 from Peter Bergner --- Closing as fixed.
[Bug target/81143] New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81143 Peter Bergner changed: What|Removed |Added Status|ASSIGNED|RESOLVED URL||https://gcc.gnu.org/ml/gcc- ||patches/2018-02/msg00465.ht ||ml Resolution|--- |FIXED Target Milestone|--- |8.0 --- Comment #3 from Peter Bergner --- Fixed in trunk.
[Bug target/81143] New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81143 --- Comment #2 from Peter Bergner --- Author: bergner Date: Thu Feb 8 20:40:32 2018 New Revision: 257504 URL: https://gcc.gnu.org/viewcvs?rev=257504&root=gcc&view=rev Log: PR target/81143 * gcc.target/powerpc/pr79799-2.c: Use __LITTLE_ENDIAN__. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/powerpc/pr79799-2.c
[Bug target/81143] New test case gcc.target/powerpc/pr79799-2.c fails on powerpc BE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81143 Peter Bergner changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2018-02-08 CC||bergner at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |bergner at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Peter Bergner --- This is a test case bug. The problem is the following code: #if __ORDER_LITTLE_ENDIAN__ #define ELE 2 #else #define ELE 1 #endif vector float foo (vector float v1, vector float v2) { return vec_insert (vec_extract (v2, ELE), v1, 0); } The bug is that __ORDER_LITTLE_ENDIAN__ is always defined, so we pass the wrong ELE value to vec_extract() call on big endian. We should be testing __LITTLE_ENDIAN__ instead. Changing that fixes the failure.