This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
testcase should test the compiler
- To: egcs-patches@egcs.cygnus.com
- Subject: testcase should test the compiler
- From: Marc Espie <espie@tetto.liafa.jussieu.fr>
- Date: Tue, 31 Aug 1999 19:29:25 +0200
- Reply-To: Marc.Espie@liafa.jussieu.fr
We used to have a fairly old assembler, that doesn't know about
fxch...
With this patch, the testsuite checks about gcc proper...
The existence of fxch belongs in an assembler testsuite.
Tue Aug 31 17:22:42 CEST 1999 Marc Espie <espie@cvs.openbsd.org>
* gcc.dg/980414-1.c: Don't use i386 asm shortcut, as we want to test
the compiler, not the assembler.
--- gcc/testsuite/gcc.dg/980414-1.c.orig Tue Aug 31 17:20:01 1999
+++ gcc/testsuite/gcc.dg/980414-1.c Tue Aug 31 17:21:53 1999
@@ -32,7 +32,7 @@ mypow (double __x, double __y)
("fmul %%st(1),%%st\n\t" /* y * log2(x) */
"fst %%st(1)\n\t"
"frndint\n\t" /* int(y * log2(x)) */
- "fxch\n\t"
+ "fxch %%st(1)\n\t"
"fsub %%st(1),%%st\n\t" /* fract(y * log2(x)) */
"f2xm1\n\t" /* 2^(fract(y * log2(x))) - 1 */
: "=t" (__value), "=u" (__exponent) : "0" (__x), "1" (__y));