This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37535] gcc/libgcc2.c:404: internal compiler error: Floating point exception
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2008 02:04:28 -0000
- Subject: [Bug middle-end/37535] gcc/libgcc2.c:404: internal compiler error: Floating point exception
- References: <bug-37535-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from danglin at gcc dot gnu dot org 2008-09-16 02:04 -------
0x005b7644 <update_copy_costs+308>: stw r1,-10(sp)
0x005b7648 <update_copy_costs+312>: fldw -10(sp),fr22R
0x005b764c <update_copy_costs+316>: cmpiclr,= 0,r10,r0
0x005b7650 <update_copy_costs+320>: copy r21,r20
0x005b7654 <update_copy_costs+324>: stw r20,-10(sp)
0x005b7658 <update_copy_costs+328>: fldw -10(sp),fr22
0x005b765c <update_copy_costs+332>: xmpyu fr22,fr22R,fr22
0x005b7660 <update_copy_costs+336>: fstd fr22,-10(sp)
0x005b7664 <update_copy_costs+340>: ldw -10(sp),r25
0x005b7668 <update_copy_costs+344>: ldw -c(sp),r26
0x005b766c <update_copy_costs+348>: b,l 0x5a0cd4,r31
0x005b7670 <update_copy_costs+352>: nop
The arguments for the multiplication.
(gdb) p/x $r1
$17 = 0x1
(gdb) p/x $r20
$18 = 0xfffffffe
The arguments of the division.
(gdb) p/x $r25
$19 = 0x0
(gdb) p/x $r26
$20 = 0xfffffffe
(gdb)
Loading r25 from -10(sp) is wierd.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code, ra |
Summary|[4.4 Regression] |gcc/libgcc2.c:404: internal
|gcc/libgcc2.c:404: internal |compiler error: Floating
|compiler error: Floating |point exception
|point exception |
Target Milestone|4.4.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37535