Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2022 14:13:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 264590] assembler generates wrong opcodes of instructions fdiv fdivp fdivr fdivrp fsub fsubp fsubr fsubrp
Message-ID:  <bug-264590-29464-UKvJIXmwno@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264590-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264590-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264590

--- Comment #6 from var@schellong.biz ---
Clang -S -masm=3Datt test.c
        #APP
        fldpi
        fld1
        fdivp   %st(1)
        #NO_APP

Clang -S -masm=3Dintel test.c
        #APP
        fldpi
        fld1
        fdivrp  st(1)
        #NO_APP

>From _constant_ source:
   __asm__ ("\n\t"
            "fldpi \n\t"
            "fld1 \n\t"
            "fdivp \n\t"
            : "=3Dt"(y)
            :
            :
            );


This wrong behavior is truly powerful...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264590-29464-UKvJIXmwno>