https://bugs.llvm.org/show_bug.cgi?id=45656
Bug ID: 45656
Summary: Wrong alignment of load instruction when load vector
cast from other pointer
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
--
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