[Bug 264590] assembler generates wrong opcodes of instructions fdiv fdivp fdivr fdivrp fsub fsubp fsubr fsubrp

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 10 Jun 2022 14:13:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264590

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

Clang -S -masm=intel 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"
            : "=t"(y)
            :
            :
            );


This wrong behavior is truly powerful...

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