File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
lib/Target/AArch64/AsmParser Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ Changes to the AArch64 Backend
95
95
* Support for preserve_all calling convention is added.
96
96
* Added support for missing arch extensions in the assembly directives
97
97
``.arch <level>+<ext> `` and ``.arch_extension ``.
98
+ * Fixed handling of ``.arch <level> `` in assembly, without using any ``+<ext> ``
99
+ suffix. Previously this had no effect at all if no extensions were supplied.
100
+ Now ``.arch <level> `` can be used to enable all the extensions that are
101
+ included in a higher level than what is specified on the command line,
102
+ or for disabling unwanted extensions if setting it to a lower level.
103
+ This fixes `PR32873 <https://github.com/llvm/llvm-project/issues/32220> `.
98
104
99
105
Changes to the AMDGPU Backend
100
106
-----------------------------
Original file line number Diff line number Diff line change @@ -6920,6 +6920,7 @@ bool AArch64AsmParser::parseDirectiveArch(SMLoc L) {
6920
6920
ExpandCryptoAEK (*ArchInfo, RequestedExtensions);
6921
6921
6922
6922
FeatureBitset Features = STI.getFeatureBits ();
6923
+ setAvailableFeatures (ComputeAvailableFeatures (Features));
6923
6924
for (auto Name : RequestedExtensions) {
6924
6925
bool EnableFeature = true ;
6925
6926
Original file line number Diff line number Diff line change 36
36
# CHECK: error: instruction requires: ras
37
37
# CHECK-NEXT: esb
38
38
39
- // PR32873: without extra features, '.arch' is currently ignored.
40
- // Add an unrelated feature to accept the directive.
41
- .arch armv8+crc
39
+ .arch armv8
42
40
casa w5, w7, [x19]
43
41
44
42
# CHECK: error: instruction requires: lse
Original file line number Diff line number Diff line change 8
8
# CHECK: aesd v0.16b, v2.16b
9
9
# CHECK: eor v0.16b, v0.16b, v2.16b
10
10
11
- // PR32873: without extra features, '.arch' is currently ignored.
12
- // Add an unrelated feature to accept the directive.
13
- .arch armv8.1 -a+crypto
11
+ .arch armv8.1 -a
14
12
casa w5, w7, [x20]
15
13
# CHECK: casa w5, w7, [x20]
16
14
You can’t perform that action at this time.
0 commit comments