Commit 442f066
committed
[AArch64AsmParser] Support (xxx), lsl 16 after llvm#80571
An immediate integer operand not prefixed with # can also be followed
by "lsl". Parse "lsl".
In the wild, edk2 ArmPkg/Include/AsmMacroIoLibV8.h has
`movz Reg, (Val) >> 16, lsl #16`.
Note: our support for paren expression not prefixed with # is not very
good. For example, `adds x3, x4, (1024>>0), lsl 12` fails to be parsed.1 parent e98abc3 commit 442f066
2 files changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4764 | 4764 | | |
4765 | 4765 | | |
4766 | 4766 | | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
4767 | 4776 | | |
4768 | 4777 | | |
4769 | 4778 | | |
| |||
4773 | 4782 | | |
4774 | 4783 | | |
4775 | 4784 | | |
4776 | | - | |
| 4785 | + | |
4777 | 4786 | | |
4778 | 4787 | | |
4779 | 4788 | | |
| |||
4895 | 4904 | | |
4896 | 4905 | | |
4897 | 4906 | | |
4898 | | - | |
4899 | | - | |
4900 | | - | |
4901 | | - | |
4902 | | - | |
4903 | | - | |
4904 | | - | |
4905 | | - | |
| 4907 | + | |
4906 | 4908 | | |
4907 | 4909 | | |
4908 | 4910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments