https://bugs.llvm.org/show_bug.cgi?id=44405
Jonas Paulsson <pauls...@linux.vnet.ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Jonas Paulsson <pauls...@linux.vnet.ibm.com> ---
(In reply to Eli Friedman from comment #1)
> You're performing a store with align 4 to an unaligned variable.
>
> (Implicit alignment in IR is confusing, useless historical artifact; we
> should get rid of it, but I haven't had time.)
I am not sure I follow your reasoning:
- This is not affected by adding explicit alignments on the variable and the
store.
- Since this is the second element of the struct, lying after an i16, it will
never be guaranteed to be aligned at 4 bytes.
- The STRL instruction demands a 4 byte alignment. Therefore, I think the
backend should emit an MVHI instead, which does not have this requirement (if
the first element is changed to be an i8, the MVHI is produced).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs