public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/108946] New: [13.0] d: Identity comparison of vectors not supported
@ 2023-02-27 11:46 ibuclaw at gcc dot gnu.org
  2023-03-03  0:26 ` [Bug d/108946] " cvs-commit at gcc dot gnu.org
  2023-03-03  0:27 ` ibuclaw at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2023-02-27 11:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108946
           Summary: [13.0] d: Identity comparison of vectors not supported
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gcc dot gnu.org
  Target Milestone: ---

The operation `bool r = vector1 is vector2;` should be allowed by the D
front-end codegen, and have a boolean result.

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

* [Bug d/108946] [13.0] d: Identity comparison of vectors not supported
  2023-02-27 11:46 [Bug d/108946] New: [13.0] d: Identity comparison of vectors not supported ibuclaw at gcc dot gnu.org
@ 2023-03-03  0:26 ` cvs-commit at gcc dot gnu.org
  2023-03-03  0:27 ` ibuclaw at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-03-03  0:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:

https://gcc.gnu.org/g:929c6b8cd12a3bd338a4c250274a9d86da5b2ea7

commit r13-6433-g929c6b8cd12a3bd338a4c250274a9d86da5b2ea7
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Fri Mar 3 00:00:44 2023 +0100

    d: Allow vectors to be compared for identity [PR108946]

    Vector equality and comparisons are now accepted by the language
    implementation, but identity wasn't.  Implement it as an extra integer
    comparison of the bit-casted bitmask.

            PR d/108946

    gcc/d/ChangeLog:

            * d-target.cc (Target::isVectorOpSupported): Allow identity ops.
            * expr.cc (ExprVisitor::visit (IdentityExp *)): Handle vector
identity
            comparisons.

    gcc/testsuite/ChangeLog:

            * gdc.dg/simd2a.d: Update test.
            * gdc.dg/simd2b.d: Likewise.
            * gdc.dg/simd2c.d: Likewise.
            * gdc.dg/simd2d.d: Likewise.
            * gdc.dg/simd2e.d: Likewise.
            * gdc.dg/simd2f.d: Likewise.
            * gdc.dg/simd2g.d: Likewise.
            * gdc.dg/simd2h.d: Likewise.
            * gdc.dg/simd2i.d: Likewise.
            * gdc.dg/simd2j.d: Likewise.

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

* [Bug d/108946] [13.0] d: Identity comparison of vectors not supported
  2023-02-27 11:46 [Bug d/108946] New: [13.0] d: Identity comparison of vectors not supported ibuclaw at gcc dot gnu.org
  2023-03-03  0:26 ` [Bug d/108946] " cvs-commit at gcc dot gnu.org
@ 2023-03-03  0:27 ` ibuclaw at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2023-03-03  0:27 UTC (permalink / raw)
  To: gcc-bugs

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

ibuclaw at gcc dot gnu.org changed:

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

--- Comment #2 from ibuclaw at gcc dot gnu.org ---
Fix committed.

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

end of thread, other threads:[~2023-03-03  0:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27 11:46 [Bug d/108946] New: [13.0] d: Identity comparison of vectors not supported ibuclaw at gcc dot gnu.org
2023-03-03  0:26 ` [Bug d/108946] " cvs-commit at gcc dot gnu.org
2023-03-03  0:27 ` ibuclaw 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).