After I applied the fix for PR 70640, one the regression testers reported the test as an error. This system is a power7 system that does not have an asembler that understands the power8/power9 instructions. This means that -mcpu=power8 will only generate power7 code.
The difference for this test is that on power7, it generates a vspltisw instruciton to create a register with all 1's set, while on power8 it generates xxlorc instead (vspltisw is restricted to the Altivec registers, while xxlorc can target all VSX registers, so it is preferred for power8 code). Since it was in a new test and obvious, I went ahead and commited the following patch: 2016-04-14 Michael Meissner <meiss...@linux.vnet.ibm.com> PR target/70640 * gcc.target/powerpc/pr70640.c: Fix test so it correctly works on a power7 system that does not have an assembler that supports power8. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meiss...@linux.vnet.ibm.com, phone: +1 (978) 899-4797
Index: gcc/testsuite/gcc.target/powerpc/pr70640.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr70640.c (revision 234980) +++ gcc/testsuite/gcc.target/powerpc/pr70640.c (working copy) @@ -5,7 +5,7 @@ __float128 foo (__float128 a) { return -a; } -/* { dg-final { scan-assembler "xxlorc" } } */ +/* { dg-final { scan-assembler "xxlorc\|vspltisw" } } */ /* { dg-final { scan-assembler "xxlxor" } } */ /* { dg-final { scan-assembler "vslb" } } */ /* { dg-final { scan-assembler "vsldoi" } } */