[llvm-bugs] [Bug 50943] Inline asm miscompile (test segfaults)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 30 10:57:34 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50943

Paul Robinson <paul_robinson at playstation.sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Paul Robinson <paul_robinson at playstation.sony.com> ---
(In reply to Craig Topper from comment #3)
> I'm not sure there's an alignment requirement for that array other than what
> is implied by float. Versions of gcc prior to 5 use align 16 with -Os and
> align 32 with -O2.
> 
> Adding __attribute__ ((aligned (32))) to the struct definition also appears
> to fix the crash.

I was coming to the same conclusion.  I threw in some alignof() expressions
and they all report 4.  Pumping up the alignment in the generated code seems
rather optional.

I'll resolve this as invalid and we'll patch the test to enforce the required
alignment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210630/c08560ee/attachment.html>


More information about the llvm-bugs mailing list