This is the mail archive of the gcc-patches@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]

[testsuite] enable checks in ppc32-abi-dfp-1.c


SDmode (_Decimal32) arguments should be passed in floating point
registers on PowerPC-32 GNU/Linux, but currently they are passed in
general registers.  Peter Bergner is working on a fix for this
problem.  This patch enables some checks in an existing test that
will make the issue more visible via test failures until the problem
is fixed, as requested by Peter.

Tested on powerpc-linux, checked into trunk.

2008-01-17  Janis Johnson  <janis187@us.ibm.com>

	PR target/34814
	* gcc.target/powerpc/ppc32-abi-dfp-1.c: Enable checks that will fail
	until 34814 is fixed.

Index: gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c	(revision 131610)
+++ gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c	(working copy)
@@ -216,14 +216,11 @@
   func1 (1.dd, 2.dl, 3.dd, 4.dl, 5.dd, 6.dl, 7.dd, 8.dl);
   func2 (1.dl, 2.dd, 3.dl, 4.dd, 5.dl, 6.dd, 7.dl, 8.dd);
   func3 (1.dd, 2.dl, 3.dd, 4.dl, 5.dl);
-#if 0
-  /* _Decimal32 doesn't yet follow the ABI; enable this when it does.  */
   func4 (501.2df, 502.2df, 503.2df, 504.2df, 505.2df, 506.2df, 507.2df,
 	 508.2df, 509.2df, 510.2df, 511.2df, 512.2df, 513.2df, 514.2df,
 	 515.2df, 516.2df);
   func5 (601.2df, 602.2dd, 603.2dl, 604.2df, 605.2dd, 606.2dl,
 	 607.2df, 608.2dd, 609.2dl, 610.2df, 611.2dd, 612.2dl);
-#endif
 
   if (failcnt != 0)
     abort ();



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