-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[llvm][ARM] Allow MOVT and MOVW on the offset between two labels #168072
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 1 commit
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,14 @@ | ||
| @RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s 2>&1 | FileCheck %s | ||
|
|
||
| .text | ||
| a: | ||
| movw r1, #:lower16:b - a + 65536 | ||
| movt r1, #:upper16:b - a + 65536 | ||
| b: | ||
|
|
||
| @CHECK-NOT: error: Relocation Not In Range | ||
|
||
| @CHECK-NOT: movw r1, #:lower16:b - a + 65536 | ||
| @CHECK-NOT: ^ | ||
| @CHECK-NOT: error: Relocation Not In Range | ||
| @CHECK-NOT: movt r1, #:upper16:b - a + 65536 | ||
| @CHECK-NOT: ^ | ||
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.
Maybe could use IsResolved here instead? I guess it's basically the same thing in this context.
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.
OK, changed to
!IsResolved.