From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: law@cygnus.com Cc: egcs@egcs.cygnus.com, john@feith.com Subject: Re: egcs-1.2 stuff Date: Mon, 12 Apr 1999 13:36:00 -0000 Message-id: References: <7630.923948648@upchuck> X-SW-Source: 1999-04/msg00424.html > > > In message < m10WkA2-000ErMC@ocean.lucon.org >you write: > > > Interesting. I wonder if the patch got mis-applied. Quite possible sinc > > e > > > the patch is old. > > > > > > > I applied your patch and fixed the bugs in it. This is what I got by > > adding "-mcpu=pentiumpro -march=pentiumpro" to CFLAGS. I didn't find > > any regressions. > > > > Please let me know which patch you want, against yours or CVS. > Against CVS would be best. Thanks! I will do that. It may take a while. I am updating it now. > > What was the problem? > jeff > You left out the following changes. -- H.J. Lu (hjl@gnu.org) ---- --- /tmp/i386.c Mon Apr 12 13:33:24 1999 +++ ./i386.c Mon Apr 12 09:08:25 1999 @@ -3187,7 +3187,8 @@ put_jump_code (code, reverse, file) FILE *file; { int flags = cc_prev_status.flags; - int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387)); + int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387) + && !(cc_prev_status.flags & CC_FCOMI)); const char *suffix; if (flags & CC_Z_IN_NOT_C) @@ -4288,8 +4289,7 @@ output_float_compare (insn, operands) { output_asm_insn (AS2 (fcomip, %y1,%0), operands); output_asm_insn (AS1 (fstp, %y0), operands); - if (!TARGET_IEEE_FP) - return ""; + return ""; } else output_asm_insn ("fcompp", operands); From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: law@cygnus.com Cc: egcs@egcs.cygnus.com, john@feith.com Subject: Re: egcs-1.2 stuff Date: Fri, 30 Apr 1999 23:15:00 -0000 Message-ID: References: <7630.923948648@upchuck> X-SW-Source: 1999-04n/msg00427.html Message-ID: <19990430231500.mOS8fWyYv7uVc9mUyHJC1vykwtsuaL8OiSCx2dS0PZw@z> > > > In message < m10WkA2-000ErMC@ocean.lucon.org >you write: > > > Interesting. I wonder if the patch got mis-applied. Quite possible sinc > > e > > > the patch is old. > > > > > > > I applied your patch and fixed the bugs in it. This is what I got by > > adding "-mcpu=pentiumpro -march=pentiumpro" to CFLAGS. I didn't find > > any regressions. > > > > Please let me know which patch you want, against yours or CVS. > Against CVS would be best. Thanks! I will do that. It may take a while. I am updating it now. > > What was the problem? > jeff > You left out the following changes. -- H.J. Lu (hjl@gnu.org) ---- --- /tmp/i386.c Mon Apr 12 13:33:24 1999 +++ ./i386.c Mon Apr 12 09:08:25 1999 @@ -3187,7 +3187,8 @@ put_jump_code (code, reverse, file) FILE *file; { int flags = cc_prev_status.flags; - int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387)); + int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387) + && !(cc_prev_status.flags & CC_FCOMI)); const char *suffix; if (flags & CC_Z_IN_NOT_C) @@ -4288,8 +4289,7 @@ output_float_compare (insn, operands) { output_asm_insn (AS2 (fcomip, %y1,%0), operands); output_asm_insn (AS1 (fstp, %y0), operands); - if (!TARGET_IEEE_FP) - return ""; + return ""; } else output_asm_insn ("fcompp", operands);