File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
lib/Target/AArch64/AsmParser Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -7201,6 +7201,7 @@ bool AArch64AsmParser::parseDirectiveArch(SMLoc L) {
72017201 }
72027202 FeatureBitset Features = ComputeAvailableFeatures (STI.getFeatureBits ());
72037203 setAvailableFeatures (Features);
7204+
72047205 getTargetStreamer ().emitDirectiveArch (Name);
72057206 return false ;
72067207}
Original file line number Diff line number Diff line change 1+ # RUN: llvm-mc -assemble -triple=aarch64- %s | FileCheck %s
2+ # CHECK: .text
3+ # CHECK-NEXT: .arch armv8-a+lse
4+ # CHECK-NEXT: cas x0, x1, [x2]
5+ # CHECK-NEXT: .arch armv8-a
6+ # CHECK-NEXT: .arch_extension lse
7+ # CHECK-NEXT: cas x0, x1, [x2]
8+ .text
9+ .arch armv8-a+lse
10+ cas x0, x1, [x2]
11+ .arch armv8-a
12+ .arch_extension lse
13+ cas x0, x1, [x2]
You can’t perform that action at this time.
0 commit comments