diff mbox

[#2] , PR target/70640, Fix thinkos in PowerPC IEEE 128-bit floating point emulation

Message ID 20160414201203.GA7756@ibm-tiger.the-meissners.org
State New
Headers show

Commit Message

Michael Meissner April 14, 2016, 8:12 p.m. UTC
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  <meissner@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.
diff mbox

Patch

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" } } */