Commit ff3f3a5
committed
[AArch64][AsmParser] Arch directives should set implied features.
When assembling for example an SVE instruction with the `.arch +sve2` directive,
+sve should be implied by setting +sve2, similar to what would happen if
one would pass the mattr=+sve2 flag on the command-line.
The AsmParser doesn't set the implied features, meaning that the SVE
instruction does not assemble. This patch fixes that.
Note that the same does not hold when disabling a feature. For example,
+nosve2 does not imply +nosve.
Reviewed By: c-rhodes
Differential Revision: https://reviews.llvm.org/D1202591 parent dbc4d28 commit ff3f3a5
File tree
5 files changed
+55
-19
lines changed- llvm
- lib/Target/AArch64/AsmParser
- test/MC/AArch64/SVE
5 files changed
+55
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6214 | 6214 | | |
6215 | 6215 | | |
6216 | 6216 | | |
6217 | | - | |
6218 | | - | |
6219 | | - | |
6220 | | - | |
6221 | | - | |
6222 | | - | |
| 6217 | + | |
| 6218 | + | |
| 6219 | + | |
| 6220 | + | |
| 6221 | + | |
6223 | 6222 | | |
6224 | 6223 | | |
6225 | 6224 | | |
| |||
6252 | 6251 | | |
6253 | 6252 | | |
6254 | 6253 | | |
6255 | | - | |
6256 | | - | |
6257 | | - | |
6258 | | - | |
6259 | | - | |
6260 | | - | |
| 6254 | + | |
| 6255 | + | |
| 6256 | + | |
| 6257 | + | |
| 6258 | + | |
6261 | 6259 | | |
6262 | 6260 | | |
6263 | 6261 | | |
| |||
6297 | 6295 | | |
6298 | 6296 | | |
6299 | 6297 | | |
6300 | | - | |
6301 | 6298 | | |
6302 | 6299 | | |
6303 | 6300 | | |
| |||
6317 | 6314 | | |
6318 | 6315 | | |
6319 | 6316 | | |
6320 | | - | |
6321 | | - | |
6322 | | - | |
6323 | | - | |
6324 | | - | |
6325 | | - | |
| 6317 | + | |
| 6318 | + | |
| 6319 | + | |
| 6320 | + | |
| 6321 | + | |
| 6322 | + | |
6326 | 6323 | | |
6327 | 6324 | | |
6328 | 6325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments