public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/82680] Use cmpXXss and cmpXXsd for setcc boolean compare
       [not found] <bug-82680-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-18 21:10 ` pinskia at gcc dot gnu.org
  2021-08-18 21:11 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-18 21:10 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-08-18
     Ever confirmed|0                           |1

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
MSVC (in 64bit 19.30.30423.0) does:
        vucomisd xmm0, xmm1
        jp      SHORT $LN3@g
        jne     SHORT $LN3@g
        mov     eax, 1
        ret     0
$LN3@g:
        xor     eax, eax
        ret     0

MSVC (32bit, 19.30.30423.0) does:
        vmovsd  xmm0, QWORD PTR _x$[esp-4]
        vucomisd xmm0, QWORD PTR _y$[esp-4]
        mov     edx, 1
        lahf
        xor     ecx, ecx
        test    ah, 68                              ; 00000044H
        cmovnp  ecx, edx
        mov     eax, ecx
; Line 5
        ret     0

I don't know why there is a difference as both are the same version.

Confirmed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug target/82680] Use cmpXXss and cmpXXsd for setcc boolean compare
       [not found] <bug-82680-4@http.gcc.gnu.org/bugzilla/>
  2021-08-18 21:10 ` [Bug target/82680] Use cmpXXss and cmpXXsd for setcc boolean compare pinskia at gcc dot gnu.org
@ 2021-08-18 21:11 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-18 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
I should say this is with the following options:
/O2 /std:c++latest /arch:AVX2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-18 21:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-82680-4@http.gcc.gnu.org/bugzilla/>
2021-08-18 21:10 ` [Bug target/82680] Use cmpXXss and cmpXXsd for setcc boolean compare pinskia at gcc dot gnu.org
2021-08-18 21:11 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).