From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B7BF385ED69; Fri, 31 May 2024 13:50:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7BF385ED69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717163459; bh=sql6v1Zqlg6tjcL4PIXsEvLE1fWlENImnxaPqcSi/kM=; h=From:To:Subject:Date:From; b=K9pt646zymkw+I8+/tSWJoWWJPy+AwDKJLHXH7cSnaR+qhw6j7vO4PjZxAohF1AJ+ aGCq/CdCPXb96jaVqx7WK9zpZqBuqih7xSIULPaSq2gEJFr43RpqStqAHBZcRoVc5f 1i3s+9RiMVYsjAT+7yVS2sxkFa/jul6ItC6NKog4= From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/115307] New: [avr] Don't expand isinf() like a built-in Date: Fri, 31 May 2024 13:50:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115307 Bug ID: 115307 Summary: [avr] Don't expand isinf() like a built-in Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- avr-gcc compiles int isinff (float); int call_isinff (float f) { return isinff (f); } like: call_isinff: push r12 ; 63 [c=3D4 l=3D1] pushqi1/0 push r13 ; 64 [c=3D4 l=3D1] pushqi1/0 push r14 ; 65 [c=3D4 l=3D1] pushqi1/0 push r15 ; 66 [c=3D4 l=3D1] pushqi1/0 push r28 ; 67 [c=3D4 l=3D1] pushqi1/0 /* prologue: function */ /* frame size =3D 0 */ /* stack size =3D 5 */ .L__stack_usage =3D 5 movw r12,r22 ; 56 [c=3D4 l=3D2] *movsf/0 movw r14,r24 clt ; 57 [c=3D4 l=3D2] *abssf2/1 bld r15,7 ldi r28,lo8(1) ; 58 [c=3D4 l=3D1] movqi_insn/1 ldi r18,lo8(-1) ; 59 [c=3D4 l=3D4] *movsf/4 ldi r19,lo8(-1) ldi r20,lo8(127) ldi r21,lo8(127) movw r24,r14 ; 60 [c=3D4 l=3D2] *movsf/0 movw r22,r12 call __unordsf2 ; 10 [c=3D12 l=3D2] call_value_insn/1 cpse r24,__zero_reg__ ; 61 [c=3D0 l=3D1] enable_interrupt-3 rjmp .L2 ldi r18,lo8(-1) ; 52 [c=3D4 l=3D4] *movsf/4 ldi r19,lo8(-1) ldi r20,lo8(127) ldi r21,lo8(127) movw r24,r14 ; 53 [c=3D4 l=3D2] *movsf/0 movw r22,r12 call __lesf2 ; 15 [c=3D12 l=3D2] call_value_insn/1 cp __zero_reg__,r24 ; 77 [c=3D16 l=3D1] *swapped_tstqi brge .L2 ; 78 [c=3D4 l=3D1] branch ldi r28,0 ; 51 [c=3D4 l=3D1] movqi_insn/0 .L2: ldi r24,lo8(1) ; 45 [c=3D4 l=3D1] movqi_insn/1 eor r24,r28 ; 46 [c=3D4 l=3D1] *xorqi3 ldi r25,0 ; 50 [c=3D4 l=3D1] movqi_insn/0 /* epilogue start */ pop r28 ; 70 [c=3D4 l=3D1] popqi pop r15 ; 71 [c=3D4 l=3D1] popqi pop r14 ; 72 [c=3D4 l=3D1] popqi pop r13 ; 73 [c=3D4 l=3D1] popqi pop r12 ; 74 [c=3D4 l=3D1] popqi ret ; 75 [c=3D0 l=3D1] return_from_epilogue where a simple call to isinff would be mush better.=