public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19653] New: x87 reg allocated for constants for -mfpmath=sse
@ 2005-01-27  8:34 uros at kss-loka dot si
  2005-01-27  8:35 ` [Bug target/19653] " uros at kss-loka dot si
                   ` (18 more replies)
  0 siblings, 19 replies; 24+ messages in thread
From: uros at kss-loka dot si @ 2005-01-27  8:34 UTC (permalink / raw)
  To: gcc-bugs

A self-contained testcase is attached to this bugreport. Please compile it with
-O2 -march=pentium4 -mfpmath=sse -ffast-math.

This part of the testcase:
  ...
  if ( fabs(fabs(NewRay->Direction[Z])- 1.) < .1 ) {
    /* too close to vertical for comfort, so use cross product with horizon */
    up[X] = 0.; up[Y] = 1.; up[Z] = 0.;
  }
  else
  {
    up[X] = 0.; up[Y] = 0.; up[Z] = 1.;
  }

  VCross(n2, NewRay->Direction, up);  VNormalizeEq(n2);
  VCross(n3, NewRay->Direction, n2);  VNormalizeEq(n3);
  ...

will generate:
	jae	.L2
	fldz
	fstl	-112(%ebp)
	movsd	-112(%ebp), %xmm2
	fld1
	fstpl	-112(%ebp)
	movsd	-112(%ebp), %xmm1
.L5:
	fldl	32(%ebx)
	fstpl	-96(%ebp)
	movsd	-96(%ebp), %xmm3
	mulsd	%xmm2, %xmm3
	movapd	%xmm5, %xmm0
	mulsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm3
	fldl	24(%ebx)
	fstpl	-88(%ebp)
	mulsd	-88(%ebp), %xmm2
	xorpd	.LC5, %xmm2
	movsd	-88(%ebp), %xmm4
        ...
.L2:
	fld1
	fstpl	-112(%ebp)
	movsd	-112(%ebp), %xmm2
	fldz
	fstl	-112(%ebp)
	movsd	-112(%ebp), %xmm1
	jmp	.L5

Uros.

-- 
           Summary: x87 reg allocated for constants for -mfpmath=sse
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uros at kss-loka dot si
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19653


^ permalink raw reply	[flat|nested] 24+ messages in thread
[parent not found: <bug-19653-1649@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-04-18  8:23 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-27  8:34 [Bug target/19653] New: x87 reg allocated for constants for -mfpmath=sse uros at kss-loka dot si
2005-01-27  8:35 ` [Bug target/19653] " uros at kss-loka dot si
2005-01-27  9:14 ` uros at kss-loka dot si
2005-01-27 13:28 ` pinskia at gcc dot gnu dot org
2005-01-28  6:24 ` uros at kss-loka dot si
2005-02-08 16:46 ` steven at gcc dot gnu dot org
2005-02-09 13:11 ` uros at kss-loka dot si
2005-06-19 14:58 ` pinskia at gcc dot gnu dot org
2005-07-13 11:33 ` pinskia at gcc dot gnu dot org
2005-07-13 12:06 ` bonzini at gcc dot gnu dot org
2005-07-13 14:03 ` matz at suse dot de
2005-07-13 14:16 ` bonzini at gcc dot gnu dot org
2005-07-13 14:43 ` bonzini at gcc dot gnu dot org
2005-07-14  8:55 ` bonzini at gcc dot gnu dot org
2005-07-27 15:57 ` bonzini at gcc dot gnu dot org
2005-08-01 20:56 ` dalej at gcc dot gnu dot org
2005-08-02 22:58 ` dalej at gcc dot gnu dot org
2005-08-22 22:09 ` bonzini at gcc dot gnu dot org
2005-09-21  6:52 ` paolo dot bonzini at lu dot unisi dot ch
2005-09-21 17:23 ` dalej at gcc dot gnu dot org
     [not found] <bug-19653-1649@http.gcc.gnu.org/bugzilla/>
2005-11-22  9:21 ` bonzini at gcc dot gnu dot org
2006-04-03 11:20 ` bonzini at gcc dot gnu dot org
2006-04-03 11:20 ` bonzini at gnu dot org
2006-04-18  8:23 ` bonzini at gcc dot gnu dot org

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).