public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/6277: Failure of test gcc.dg/i386-387-1.c on cygwin
@ 2002-04-12  7:36 David.Billinghurst
  0 siblings, 0 replies; 2+ messages in thread
From: David.Billinghurst @ 2002-04-12  7:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6277
>Category:       c
>Synopsis:       Failure of test gcc.dg/i386-387-1.c on cygwin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 12 07:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Billinghurst
>Release:        unknown-1.0
>Organization:
>Environment:
i686-pc-cygwin
>Description:
gcc.dg/i386-387-1.c fails on cygwin with:

FAIL: gcc.dg/i386-387-1.c scan-assembler call	sin
FAIL: gcc.dg/i386-387-1.c scan-assembler call	cos
FAIL: gcc.dg/i386-387-1.c scan-assembler call	sqrt

Inspection of the assembler shows lines "call  _sin" etc
If this is the desired outcome then the scan-assembler
regex needs patching (below)
>How-To-Repeat:
bootstrap and run testsuite
>Fix:
Index: i386-387-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/i386-387-1.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 i386-387-1.c
--- i386-387-1.c        29 Mar 2002 23:21:41 -0000      1.1.2.1
+++ i386-387-1.c        12 Apr 2002 14:33:42 -0000
@@ -1,9 +1,9 @@
 /* Verify that -mno-fancy-math-387 works.  */
 /* { dg-do compile { target "i?86-*-*" } } */
 /* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387" } */
-/* { dg-final { scan-assembler "call\tsin" } } */
-/* { dg-final { scan-assembler "call\tcos" } } */
-/* { dg-final { scan-assembler "call\tsqrt" } } */
+/* { dg-final { scan-assembler "call\t_?sin" } } */
+/* { dg-final { scan-assembler "call\t_?cos" } } */
+/* { dg-final { scan-assembler "call\t_?sqrt" } } */

 double f1(double x) { return __builtin_sin(x); }
 double f2(double x) { return __builtin_cos(x); }
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="i386-387-1.s"
Content-Disposition: inline; filename="i386-387-1.s"

	.file	"i386-387-1.c"
	.text
	.align 2
.globl _f1
	.def	_f1;	.scl	2;	.type	32;	.endef
_f1:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$8, %esp
	movl	8(%ebp), %eax
	movl	12(%ebp), %edx
	movl	%eax, (%esp)
	movl	%edx, 4(%esp)
	call	_sin
	movl	%ebp, %esp
	popl	%ebp
	ret
	.align 2
.globl _f2
	.def	_f2;	.scl	2;	.type	32;	.endef
_f2:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$8, %esp
	movl	8(%ebp), %eax
	movl	12(%ebp), %edx
	movl	%eax, (%esp)
	movl	%edx, 4(%esp)
	call	_cos
	movl	%ebp, %esp
	popl	%ebp
	ret
	.align 2
.globl _f3
	.def	_f3;	.scl	2;	.type	32;	.endef
_f3:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$8, %esp
	movl	8(%ebp), %eax
	movl	12(%ebp), %edx
	movl	%eax, (%esp)
	movl	%edx, 4(%esp)
	call	_sqrt
	movl	%ebp, %esp
	popl	%ebp
	ret
	.def	_sqrt;	.scl	2;	.type	32;	.endef
	.def	_cos;	.scl	2;	.type	32;	.endef
	.def	_sin;	.scl	2;	.type	32;	.endef


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c/6277: Failure of test gcc.dg/i386-387-1.c on cygwin
@ 2002-04-14  4:54 billingd
  0 siblings, 0 replies; 2+ messages in thread
From: billingd @ 2002-04-14  4:54 UTC (permalink / raw)
  To: David.Billinghurst, billingd, gcc-bugs, gcc-prs, nobody

Synopsis: Failure of test gcc.dg/i386-387-1.c on cygwin

Responsible-Changed-From-To: unassigned->billingd
Responsible-Changed-By: billingd
Responsible-Changed-When: Sun Apr 14 04:54:47 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: open->closed
State-Changed-By: billingd
State-Changed-When: Sun Apr 14 04:54:47 2002
State-Changed-Why:
    Fixed by patch below

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6277


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-14 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12  7:36 c/6277: Failure of test gcc.dg/i386-387-1.c on cygwin David.Billinghurst
2002-04-14  4:54 billingd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).