public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/114750] New: converting load/store of simd fails compilation on ARM
@ 2024-04-17  7:03 mkretz at gcc dot gnu.org
  2024-04-17  7:07 ` [Bug libstdc++/114750] " mkretz at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mkretz at gcc dot gnu.org @ 2024-04-17  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114750
           Summary: converting load/store of simd fails compilation on ARM
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mkretz at gcc dot gnu.org
  Target Milestone: ---

https://compiler-explorer.com/z/jh5YeqzEe

Testcase:

#include <experimental/simd>

namespace stdx = std::experimental;

void f(long double* ptr, double* dptr, float* fptr)
{
  stdx::simd<int> x;
  //stdx::fixed_size_simd<int, 3> x;
  x.copy_from(ptr, stdx::element_aligned);
  x.copy_to(dptr, stdx::element_aligned);
  x.copy_from(dptr, stdx::element_aligned);
  x.copy_to(fptr, stdx::element_aligned);
  x.copy_from(fptr, stdx::element_aligned);
  x.copy_to(ptr, stdx::element_aligned);
}

This fails when using 'std::experimental::parallelism_v2::__intrinsic_type<long
double, 16, void>' in the load and store implementations. The same failure can
occur for '__intrinsic_type<double, 16, void>' and '__intrinsic_type<float, 16,
void>'.

A condition, checking whether the type is actually vectorizable for the target
is missing.

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

end of thread, other threads:[~2024-05-10 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17  7:03 [Bug libstdc++/114750] New: converting load/store of simd fails compilation on ARM mkretz at gcc dot gnu.org
2024-04-17  7:07 ` [Bug libstdc++/114750] " mkretz at gcc dot gnu.org
2024-04-17  8:34 ` cvs-commit at gcc dot gnu.org
2024-04-22 12:50 ` mkretz at gcc dot gnu.org
2024-05-07  7:45 ` rguenth at gcc dot gnu.org
2024-05-07 16:19 ` cvs-commit at gcc dot gnu.org
2024-05-08 16:14 ` cvs-commit at gcc dot gnu.org
2024-05-10 14:07 ` cvs-commit at gcc dot gnu.org
2024-05-10 14:25 ` mkretz 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).