-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[bolt] Support arm64 FP register spills #73021
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Check that we correctly handle arm64 fp register spills in | ||
# bolt when we are processing jump tables. | ||
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for jumping in late after the change landed. This test checks that BOLT doesn't crash, but it doesn't really check for the correct handling of the jump table. You'll need to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea behind the test was not to check the jump table (although it would be nice), but the previous bolt assertion during analyzation. So the test is good-enough I think |
||
# REQUIRES: system-linux | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add test scription at the beginning of the file |
||
# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o | ||
# RUN: ld.lld --emit-relocs %t.o -o %t.elf | ||
# RUN: llvm-bolt --jump-tables=move %t.elf -o %t.bolt | ||
|
||
.globl _foo, _start | ||
|
||
_foo: | ||
ret | ||
|
||
_start: | ||
adr x6, _foo | ||
fmov d18,x6 | ||
fmov x5,d18 | ||
ldrb w5, [x5, w1, uxtw] | ||
add x5, x6, w5, sxtb #2 | ||
br x5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line please after }