https://bugs.llvm.org/show_bug.cgi?id=45479
Bug ID: 45479
Summary: clang constant-folds away runtime test of stack
alignment
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: AArch64
Assignee: unassignedb...@nondot.org
Reporter: rol...@hack.frob.com
CC: arnaud.degrandmai...@arm.com,
llvm-bugs@lists.llvm.org, smithp...@googlemail.com,
ties.st...@arm.com
Created attachment 23333
--> https://bugs.llvm.org/attachment.cgi?id=23333&action=edit
reproducer (preprocessed C++)
With attached reproducer, clang generates code that takes the __zx_panic path
unconditionally. The asm should force it to produce a runtime test. If that
weren't there, it would be kosher to fold away the test--but it should succeed
rather than fail. The actual address computed is correct and at runtime in the
debugger it can be seen to be 0 mod 16, so if the code checked that as it
should the test would pass.
--
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