Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: good news and bad news on floating-point problems
       [not found] <Pine.SUN.3.96L.980709114214.25650A-100000@bethe.phys.ksu.edu>
@ 1998-07-09 18:25 ` Wes Bauske
  1998-07-09 23:19   ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Wes Bauske @ 1998-07-09 18:25 UTC (permalink / raw)
  To: axp-list@redhat.com

Jesse Goldman wrote:
> 
>  Attempts result in errors like:
> 
> g77 -c -O -fno-automatic -fno-second-underscore -fugly-complex -g
> -mieee-with-inexact    -I/root/cernlib98/src/pawlib/paw
> -I/root/cernlib98/src/paw -I/root/cernlib98/src/paw/code
> -I/root/cernlib98/src/include  -DCERNLIB_LINUX -DCERNLIB_UNIX
> -DCERNLIB_LNX   -o archive/pafeyn.o pafeyn.F
> pafeyn.F: In subroutine `pafeyn':
> pafeyn.F:274: internal error--unrecognizable insn:
> (insn 1082 1081 1083 (set (reg:DF 452)
>         (le:DF (float_extend:DF (reg:SF 448))
>             (float_extend:DF (reg:SF 449)))) -1 (insn_list 1077 (insn_list
> 1081 (nil)))
>     (expr_list:REG_DEAD (reg:SF 448)
>         (nil)))
> ../../gcc/toplev.c:1138: Internal compiler error in function fatal_insn
> 
> Sometimes, I can avoid this by subtituting a -mfp-trap-mode=u for the
> -mieee option, but then it doesn't catch all the exceptions! For the time
> being, I've resigned myself to fixing such problems manually (working
> under the assumption that "good" code shouldn't try to take logarithms of
> 0!) but this is slow. Does anyone know what these errors mean?
> 

This reminds me of the stuff under gcc/config/alpha/alpha.md.
That file describes the instruction set of an Alpha processor.
Maybe your flag asked g77/gcc to use an instruction mode that
is not defined correctly? Alpha instructions have several
suffixes that can be added to an instruction for FP exception
handling. I've been looking at Alpha assembler the past couple
days trying to figure out just how egcs is slowing things down
and what, if anything can be done to alter the scheduling rules.
Course this from a guy who writes C/FORTRAN for a living, not
compilers... Think I can write better assembler though than
egcs is generating for the important loops in my code by hand
if I can't sort out what the egcs scheduler is doing. Haven't
had to do ASM programming for a long time though.


Wes


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

* Re: good news and bad news on floating-point problems
  1998-07-09 18:25 ` good news and bad news on floating-point problems Wes Bauske
@ 1998-07-09 23:19   ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1998-07-09 23:19 UTC (permalink / raw)
  To: axp-list@redhat.com

On Thu, Jul 09, 1998 at 06:25:52PM +0000, Wes Bauske wrote:
> > pafeyn.F: In subroutine `pafeyn':
> > pafeyn.F:274: internal error--unrecognizable insn:
> > (insn 1082 1081 1083 (set (reg:DF 452)
> >         (le:DF (float_extend:DF (reg:SF 448))
> >             (float_extend:DF (reg:SF 449)))) -1 (insn_list 1077 (insn_list
> > 1081 (nil)))
> >     (expr_list:REG_DEAD (reg:SF 448)
> >         (nil)))
> > ../../gcc/toplev.c:1138: Internal compiler error in function fatal_insn

This is a compiler bug.  What version is being used?  If it is
egcs, any version, please report the problem to egcs-bugs@cygnus.com
including a test case (and while small is good, it is not necessary).


r~


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

end of thread, other threads:[~1998-07-09 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.SUN.3.96L.980709114214.25650A-100000@bethe.phys.ksu.edu>
1998-07-09 18:25 ` good news and bad news on floating-point problems Wes Bauske
1998-07-09 23:19   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox