Thread overview
[Issue 24283] [SIMD][CODEGEN] Bad codegen with and not + AVX2 registers
[Issue 24283] [SIMD][CODEGEN] Bad codegen with and not + AVX registers
Dec 17, 2023
ponce
Dec 17, 2023
ponce
Dec 18, 2023
Walter Bright
Dec 18, 2023
Walter Bright
Dec 18, 2023
Dlang Bot
Dec 18, 2023
Walter Bright
Dec 18, 2023
Walter Bright
Dec 19, 2023
Dlang Bot
Dec 19, 2023
Dlang Bot
December 17, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

ponce <aliloko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, SIMD, wrong-code

--
December 17, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

--- Comment #1 from ponce <aliloko@gmail.com> ---
Similar problem with comparison operators, see Issue 24284

--
December 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
The instructions it generates are:

C5 FE 6F 05 00 00 00 00     vmovdqu YMM0,FLAT:.rodata[00h][RIP]
C5 FE 6F 0D 00 00 00 00     vmovdqu YMM1,FLAT:.rodata[00h][RIP]
C5 FE 6F 15 00 00 00 00     vmovdqu YMM2,FLAT:.rodata[00h][RIP]
C5 FD EF C2                 vpxor   YMM0,YMM0,YMM2
C5 FD DB C1                 vpand   YMM0,YMM0,YMM1
C5 FE 7F 44 24 20           vmovdqu 020h[RSP],YMM0

--
December 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[SIMD][CODEGEN] Bad codegen |[SIMD][CODEGEN] Bad codegen
                   |with and not + AVX          |with and not + AVX2
                   |registers                   |registers

--
December 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #15921 "fix Issue 24283 - [SIMD][CODEGEN] Bad codegen with and not + AVX2 reg…" fixing this issue:

- fix Issue 24283 - [SIMD][CODEGEN] Bad codegen with and not + AVX2 registers

https://github.com/dlang/dmd/pull/15921

--
December 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=24284

--
December 18, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
*** Issue 24284 has been marked as a duplicate of this issue. ***

--
December 19, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15921 "fix Issue 24283 - [SIMD][CODEGEN] Bad codegen with and not + AVX2 reg…" was merged into stable:

- d400cde140883378c78e286ca85aedc20457be20 by Walter Bright:
  fix Issue 24283 - [SIMD][CODEGEN] Bad codegen with and not + AVX2 registers

https://github.com/dlang/dmd/pull/15921

--
December 19, 2023
https://issues.dlang.org/show_bug.cgi?id=24283

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15925 "Merge stable into master" was merged into master:

- bfd09cddac6ebd69c63ddcf17bc90527084b718b by Walter Bright:
  fix Issue 24283 - [SIMD][CODEGEN] Bad codegen with and not + AVX2 registers
(#15921)

https://github.com/dlang/dmd/pull/15925

--