https://bugs.llvm.org/show_bug.cgi?id=45656
Roman Lebedev <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |[email protected]
Status|NEW |RESOLVED
--- Comment #1 from Roman Lebedev <[email protected]> ---
(In reply to JunMa from comment #0)
> see testcase in https://godbolt.org/z/Fz3vG4 we cast void* ptr to v8si*, and
> then read it.
>
> It seems clang generates the load instruction with alignment of vector type,
> not the element type which is wrong.
>
> when we build with march=core-avx2, llvm emits vmovdqa which may cause seg
> fault when ptr is not 32byte align.
Yep, and that is UB.
You may want to specify that the type is underaligned,
e.g. https://godbolt.org/z/8kC6rt
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs