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

--- Comment #2 from liu xu <mumuxi_ll at outlook dot com> ---
(In reply to Xi Ruoyao from comment #1)
> Where is the dead loop?  What values of a and b triggers it?

No matter what input values I use, after performing several calculations, it
will fall into the following loop,
=====================
addi    sp,sp,-32
sw      s0,24(sp)
sw      s1,20(sp)
sw      s2,16(sp)
sw      s3,12(sp)
sw      s4,8(sp)
sw      s5,4(sp)
sw      ra,28(sp)
mv      s0,a0
mv      s2,a1
mv      s3,a2
mv      s1,a3
li      s5,0
li      s4,0
or      a5,s0,s2
bnez    a5,38 <.L3>
mv      a2,s3
mv      a3,s1
andi    a0,s0,1
li      a1,0
auipc   ra,0x0
jalr    ra # 42 <.L3+0xa>
=====================

Reply via email to