https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96015

--- Comment #24 from Sergei Trofimovich <slyfox at inbox dot ru> ---
(In reply to Sergei Trofimovich from comment #23)
> cvise managed to shrink example down to the following:

For completeness assembly output difference is very clear now:

$ hppa2.0-unknown-linux-gnu-gcc -O2 -S ../bug_test.c -o bug.S
a:
        bv %r0(%r2)
        ldi 0,%r28

$ hppa2.0-unknown-linux-gnu-gcc -O2 -S ../bug_test.c -o bug.S
-fno-delayed-branch
a:
        comclr,<> %r26,%r25,%r0
        b,n .L11
        nop
.L4:
.L12:
        ldil L'.L6,%r28
        ldo R'.L6(%r28),%r28
        ldwx,s %r24(%r28),%r28
        bv,n %r0(%r28)
        .section        .rodata
        .align 4
.L6:
        .begin_brtab
        .word .L8
        .word .L5
        .word .L4
        .word .L5
        .word .L4
        .word .L5
        .end_brtab
        .text
.L5:
        ldi 10,%r28
        bv,n %r0(%r2)
.L11:
        ldi 0,%r28
        bv,n %r0(%r2)
.L8:
        ldi 1,%r28
        bv,n %r0(%r2)

Reply via email to