public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
@ 2005-02-09  7:18 hp at gcc dot gnu dot org
  2005-02-10 13:54 ` [Bug target/19830] " hp at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-02-09  7:18 UTC (permalink / raw)
  To: gcc-bugs

Regarding gcc.c-torture/execute/920501-8.c, there's an extra "0" in the
"1.000000" part.  Comparing to results for other targets (mmix, frv), it seems
the core sprintf function is miscompiled!

-- 
           Summary: cris-elf testsuite failure: gcc.c-
                    torture/execute/920501-8.c execute tests.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: cris-elf
OtherBugsDependingO 19745
             nThis:


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


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

* [Bug target/19830] cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
  2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
@ 2005-02-10 13:54 ` hp at gcc dot gnu dot org
  2005-02-10 20:18 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-02-10 13:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-02-10 06:28 -------
This test succeeds with LAST_UPDATED: Thu Feb 10 02:25:27 UTC 2005
Last known to fail with LAST_UPDATED: Wed Feb  9 22:53:30 UTC 2005
Closing as "fixed".  Unknown specific reason.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug target/19830] cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
  2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
  2005-02-10 13:54 ` [Bug target/19830] " hp at gcc dot gnu dot org
@ 2005-02-10 20:18 ` pinskia at gcc dot gnu dot org
  2005-02-18 23:34 ` hp at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-10 20:18 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

* [Bug target/19830] cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
  2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
  2005-02-10 13:54 ` [Bug target/19830] " hp at gcc dot gnu dot org
  2005-02-10 20:18 ` pinskia at gcc dot gnu dot org
@ 2005-02-18 23:34 ` hp at gcc dot gnu dot org
  2005-02-19  0:26 ` hp at gcc dot gnu dot org
  2005-02-19  0:51 ` hp at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-02-18 23:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-02-18 20:25 -------
Upon closer examination, the miscompiled vfprintf.c is missing a compare insn.
This seems to have been the same bug as PR 19898.

-- 


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


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

* [Bug target/19830] cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
  2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-02-18 23:34 ` hp at gcc dot gnu dot org
@ 2005-02-19  0:26 ` hp at gcc dot gnu dot org
  2005-02-19  0:51 ` hp at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-02-19  0:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-02-18 20:28 -------
.dbr:

(insn:QI 852 851 853
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1310 (set
(cc0)
        (compare (reg/v/f:SI 2 r2 [orig:130 bp ] [130])
            (reg/f:SI 9 r9 [orig:738 bp ] [738]))) 9 {cmpsi} (nil)
    (nil))

(jump_insn 853 852 5371
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1310 (set
(pc)
        (if_then_else (leu (cc0)
                (const_int 0 [0x0]))
            (label_ref 854)
            (pc))) 159 {bleu} (nil)
    (expr_list:REG_BR_PRED (const_int 18 [0x12])
        (expr_list:REG_BR_PROB (const_int 1100 [0x44c])
            (nil))))

(note 5371 853 5364 [bb 434] NOTE_INSN_BASIC_BLOCK)

(note 5364 5371 5366
("/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c") 1311)

(insn 5366 5364 5367
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1311 (set
(mem:QI (post_inc:SI (reg/f:SI \
9 r9 [orig:738 bp ] [738])) [0 S1 A8])
        (reg:QI 11 r11)) 41 {movqi} (nil)
    (expr_list:REG_INC (reg/f:SI 9 r9 [orig:738 bp ] [738])
        (nil)))

(insn 5367 5366 5368
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1311 (set
(mem/i:SI (plus:SI (reg/f:SI 14\
 sp)
                (const_int 1687 [0x697])) [19 rve+0 S4 A8])
        (reg/f:SI 9 r9 [orig:738 bp ] [738])) 32 {*movsi_internal} (nil)
    (nil))

(note 5368 5367 5369
("/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c") 1310)

(insn 5369 5368 5370
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1310 (set
(cc0)
        (compare (reg/v/f:SI 2 r2 [orig:130 bp ] [130])
            (reg/f:SI 9 r9 [orig:738 bp ] [738]))) 9 {cmpsi} (nil)
    (nil))

(jump_insn 5370 5369 5737
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1310 (set
(pc)
        (if_then_else (gtu (cc0)
                (const_int 0 [0x0]))
            (label_ref 8646)
            (pc))) 153 {bgtu} (nil)
    (expr_list:REG_BR_PRED (const_int 4 [0x4])
        (expr_list:REG_BR_PROB (const_int 8900 [0x22c4])
            (nil))))

Yet:
        cmp.d $r9,$r2   ;# 852  cmpsi/2
        bls .L128
        nop     ;# 853  bleu
        ;# basic block 434
        ;#
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1311
        .loc 1 1311 0
        move.b $r11,[$r9+]      ;# 5366 movqi/2
        move.d $r9,[$sp+1687]   ;# 5367 *movsi_internal/11
        ;#
/home/hp/cvs_areas/combined/cvs_write/newlib/libc/stdio/vfprintf.c:1310
        .loc 1 1310 0
        bhi .L612
        nop     ;# 5370 bgtu

Which concludes the analysis.  Case closed.

-- 


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


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

* [Bug target/19830] cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests.
  2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-02-19  0:26 ` hp at gcc dot gnu dot org
@ 2005-02-19  0:51 ` hp at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-02-19  0:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hp at gcc dot gnu dot org  2005-02-18 20:32 -------
One final note: this code is at the point in the simulator trace where the
number of digits is calculated and first seen to be different between the faulty
code and working code (that is, working due to unrelated rearrangement).

-- 


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


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

end of thread, other threads:[~2005-02-18 20:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-09  7:18 [Bug target/19830] New: cris-elf testsuite failure: gcc.c-torture/execute/920501-8.c execute tests hp at gcc dot gnu dot org
2005-02-10 13:54 ` [Bug target/19830] " hp at gcc dot gnu dot org
2005-02-10 20:18 ` pinskia at gcc dot gnu dot org
2005-02-18 23:34 ` hp at gcc dot gnu dot org
2005-02-19  0:26 ` hp at gcc dot gnu dot org
2005-02-19  0:51 ` hp 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).