-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unaligned load/store regression - ARMv5 incorrect codegen #32289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @dotdash - you identified and fixed this issue the last time it came up, any ideas about what changed recently that brought it back? |
No idea. A cursory glance at the IR doesn't show up any missing alignment specifiers either. |
main.ll from old nightly + diff The bizarre thing is that I don't see any real differences besides the identifier hashes in that diff... That nightly does indeed generate a working binary though. Function attribute differences? These are both EDIT: less noisy IR diff |
Generated asm from both + diff: http://pastie.org/private/j5onpivq1disqrrnwy9pq |
Okay, I've bisected across rustc versions... Nightly 303892e...9a07087 ... and I see no changes to trans at all there ;_; |
@arcnmx Are you using a custom JSON target file for ARMv5? |
@joerg-krause yeah, there's no built-in target for it in rustc. |
Okay I appear to have messed up... It's actually jan 28 vs 30 (there is no 29 nightly): 38e23e8...303892e |
The issue you describe is about faulty data alignment. You have to tell LLVM to compile with
Have a look at my armv5te-unknown-linux-gnueabi for comparison. |
Note, you'll have to recompile the rust libs after changing the target configuration. |
@joerg-krause makes sense, thanks! Especially alongside the LLVM version update in the commit range I linked. Will try and report back. |
For the record, this issue #31796 was related to faulty data alignment, too. |
Yup, that seems to help, thanks! |
#23431 is back, the test case from that issue now miscompiles on ARMv5 again. This broke somewhere between the Jan 3rd and March 9th nightlies.
main.rs and main.ll
The text was updated successfully, but these errors were encountered: