public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14119] New: libjava Array_3 test fails at -O1
@ 2004-02-11 23:32 amodra at bigpond dot net dot au
  2004-02-11 23:45 ` [Bug optimization/14119] " amodra at bigpond dot net dot au
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-02-11 23:32 UTC (permalink / raw)
  To: gcc-bugs

I've been working on the hammer branch, and noticed the libjava Array_3 test
failing there but passing on mainline.  After looking in vain for the patch that
cured the problem on mainline, I realized the pass on mainline was because the
test has changed.  Mainline runs libjava tests at -O0 and -O3, hammer-3_3-branch
runs them at -O0 and -O1.  Running mainline (and gcc-3.4) tests at -O1 exhibits
the same failure:

LD_LIBRARY_PATH=../.libs:../../../gcc ./Array_3.exe
Exception in thread "main" java.lang.RuntimeException: test failed:4
[snip rest of output]

This appears to be a combine problem.

Array_3.java.19.life:

(insn 216 215 220 30
/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java:66 (set (reg/v:DI
119 [ ok ])
        (const_int 0 [0x0])) 324 {*movdi_internal64} (nil)
    (nil))

(note 220 216 222 30
("/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java") 69)

(note 222 220 225 30
("/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java") 70)

(insn 225 222 363 30
/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java:70 (set:DI (reg:DI
164 [ <variable>.length ])
        (zero_extend:DI (mem/s/j:SI (plus:DI (reg/v:DI 119 [ ok ])
                    (const_int 8 [0x8])) [0 <variable>.length+0 S4 A64]))) 12
{*rs6000.md:372} (insn_list 216 (nil))
    (expr_list:REG_UNUSED (reg:DI 164 [ <variable>.length ])
        (expr_list:REG_EH_REGION (const_int 7 [0x7])
            (nil))))


Array_3.java.20.combine:

(note 216 215 220 30 NOTE_INSN_DELETED)

(note 220 216 222 30
("/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java") 69)

(note 222 220 225 30
("/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java") 70)

(insn 225 222 421 30
/src/gcc-current/libjava/testsuite/libjava.lang/Array_3.java:70 (set (reg/v:DI
119 [ ok ])
        (const_int 0 [0x0])) 324 {*movdi_internal64} (nil)
    (nil))

-- 
           Summary: libjava Array_3 test fails at -O1
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at bigpond dot net dot au
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


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


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

end of thread, other threads:[~2004-02-17 22:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 23:32 [Bug optimization/14119] New: libjava Array_3 test fails at -O1 amodra at bigpond dot net dot au
2004-02-11 23:45 ` [Bug optimization/14119] " amodra at bigpond dot net dot au
2004-02-12  1:11 ` amodra at bigpond dot net dot au
2004-02-15 12:56 ` cvs-commit at gcc dot gnu dot org
2004-02-17 22:21 ` cvs-commit at gcc dot gnu dot org
2004-02-17 22:28 ` cvs-commit at gcc dot gnu dot org
2004-02-17 22:39 ` amodra at bigpond dot net dot au
2004-02-17 22:44 ` pinskia 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).