public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/111302] New: aligned std::experimental::simd loads and stores are not constant expressions
@ 2023-09-06  6:33 mkretz at gcc dot gnu.org
  2023-09-06  6:34 ` [Bug libstdc++/111302] " mkretz at gcc dot gnu.org
  2024-05-07  7:41 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mkretz at gcc dot gnu.org @ 2023-09-06  6:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111302
           Summary: aligned std::experimental::simd loads and stores are
                    not constant expressions
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: mkretz at gcc dot gnu.org
          Reporter: mkretz at gcc dot gnu.org
  Target Milestone: ---

Test case (https://godbolt.org/z/d16rvjjsK):

#include <experimental/simd>

namespace stdx = std::experimental;
using V = stdx::native_simd<float>;
alignas(64) constexpr float mem[32] = {};
constexpr V zero1 = V(mem, stdx::element_aligned);
constexpr V zero2 = V(mem, stdx::vector_aligned);
constexpr V zero3 = V(mem, stdx::overaligned<64>);

constexpr float tmp1 = [](){
  float buf[V::size()] = {};
  V().copy_to(buf, stdx::element_aligned);
  return buf[0];
}();
constexpr float tmp2 = [](){
  alignas(stdx::memory_alignment_v<V>) float buf[V::size()] = {};
  V().copy_to(buf, stdx::vector_aligned);
  return buf[0];
}();
constexpr float tmp3 = [](){
  alignas(64) float buf[V::size()] = {};
  V().copy_to(buf, stdx::overaligned<64>);
  return buf[0];
}();

The element_aligned variants compile. The others don't, but they should.

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

* [Bug libstdc++/111302] aligned std::experimental::simd loads and stores are not constant expressions
  2023-09-06  6:33 [Bug libstdc++/111302] New: aligned std::experimental::simd loads and stores are not constant expressions mkretz at gcc dot gnu.org
@ 2023-09-06  6:34 ` mkretz at gcc dot gnu.org
  2024-05-07  7:41 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mkretz at gcc dot gnu.org @ 2023-09-06  6:34 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
   Last reconfirmed|                            |2023-09-06
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

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

* [Bug libstdc++/111302] aligned std::experimental::simd loads and stores are not constant expressions
  2023-09-06  6:33 [Bug libstdc++/111302] New: aligned std::experimental::simd loads and stores are not constant expressions mkretz at gcc dot gnu.org
  2023-09-06  6:34 ` [Bug libstdc++/111302] " mkretz at gcc dot gnu.org
@ 2024-05-07  7:41 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-07  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|14.0                        |14.2

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 14.1 is being released, retargeting bugs to GCC 14.2.

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

end of thread, other threads:[~2024-05-07  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-06  6:33 [Bug libstdc++/111302] New: aligned std::experimental::simd loads and stores are not constant expressions mkretz at gcc dot gnu.org
2023-09-06  6:34 ` [Bug libstdc++/111302] " mkretz at gcc dot gnu.org
2024-05-07  7:41 ` rguenth 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).