Skip to content

Commit 747bb90

Browse files
committed
Add unit test
1 parent 26d91b1 commit 747bb90

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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]

0 commit comments

Comments
 (0)