This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/26235] New: FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution at -O1, -O2 and -Os


Executing on host: /mnt/gnu/gcc-3.3/objdir/gcc/xgcc
-B/mnt/gnu/gcc-3.3/objdir/gc
c/ /mnt/gnu/gcc-3.3/gcc/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-8l.c 
-w
  -O1  -fno-show-column  -lm   -o
/mnt/gnu/gcc-3.3/objdir/gcc/testsuite/gcc/fp-c
mp-8l.x1    (timeout = 300)
PASS: gcc.c-torture/execute/ieee/fp-cmp-8l.c compilation,  -O1
Setting LD_LIBRARY_PATH to
:/mnt/gnu/gcc-3.3/objdir/gcc::/mnt/gnu/gcc-3.3/objdir
/gcc
FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution,  -O1

This appears to be another loop optimization issue:

main
        .PROC
        .CALLINFO FRAME=320,CALLS,SAVE_RP,ENTRY_GR=18,ENTRY_FR=12
        .ENTRY
        stw %r2,-20(%r30)
        ldo 320(%r30),%r30
        stw %r18,-216(%r30)
        stw %r17,-212(%r30)
        stw %r16,-208(%r30)
        stw %r15,-204(%r30)
        stw %r14,-200(%r30)
        stw %r13,-196(%r30)
        stw %r12,-192(%r30)
        stw %r11,-188(%r30)
        stw %r10,-184(%r30)
        stw %r9,-180(%r30)
        stw %r8,-176(%r30)
        stw %r7,-172(%r30)
        stw %r6,-168(%r30)
        stw %r5,-164(%r30)
        stw %r4,-160(%r30)
        stw %r3,-156(%r30)
        ldo -152(%r30),%r1
        fstds,ma %fr12,8(%r1)
        .stabn  68,0,95,L$M0037-main
L$M0037:
        ldi 0,%r11
        ldil LR'data___1657,%r28
        ldo RR'data___1657(%r28),%r5
        .stabn  68,0,141,L$M0038-main
L$M0038:
        addil LR'tests___1669-$global$,%r27
        ldo RR'tests___1669-$global$(%r1),%r18
L$BB0004:
        .stabn  68,0,84,L$M0039-main
L$M0039:
        ldil L'1073676288,%r14
        ldil L'1073741824,%r17
        ldo -296(%r30),%r9
        ldo -280(%r30),%r8
        ldo -264(%r30),%r12
        ldo -248(%r30),%r15
        .stabn  68,0,86,L$M0040-main
L$M0040:
        ldil L'1073807360,%r1
        stws %r1,-16(%sp)
        fldws -16(%sp),%fr12L
        .stabn  68,0,84,L$M0041-main
L$M0041:
        b L$0078
        ldo -312(%r30),%r16
L$0079:
L$BE0004:
        .stabn  68,0,141,L$M0042-main
L$M0042:
        ldw 0(%r7),%r10
        ldw 4(%r6),%r13
L$BB0005:
        .stabn  68,0,84,L$M0043-main
L$M0043:
        stw %r4,-296(%r30)
        stw %r4,-292(%r30)
        stw %r4,-288(%r30)
        stw %r4,-284(%r30)
        stw %r3,-280(%r30)
        stw %r3,-276(%r30)
        stw %r3,-272(%r30)
        stw %r3,-268(%r30)
        stw %r14,-264(%r30)
        stw %r0,-260(%r30)
        stw %r0,-256(%r30)
        stw %r0,-252(%r30)
        stw %r17,-248(%r30)
        stw %r0,-244(%r30)
        stw %r0,-240(%r30)
        stw %r0,-236(%r30)
        copy %r16,%r28
        copy %r9,%r26
        copy %r8,%r25
        copy %r12,%r24
        copy %r15,%r23
        ldw 0(%r6),%r22
        .CALL   ARGW0=GR
        bl $$dyncall,%r31
        copy %r31,%r2

The stack setup for the indirect calls to test_isunordered, etc, via
$$dyncall is bogus:

        stw %r4,-296(%r30)
        stw %r4,-292(%r30)
        stw %r4,-288(%r30)
        stw %r4,-284(%r30)
        stw %r3,-280(%r30)
        stw %r3,-276(%r30)
        stw %r3,-272(%r30)
        stw %r3,-268(%r30)

The same 32-bit value is being put into each quarter of the long double.

I would guess this PR is related to PR rtl-optimization/26225.


-- 
           Summary: FAIL: gcc.c-torture/execute/ieee/fp-cmp-8l.c execution
                    at -O1, -O2 and -Os
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]