summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/MC/AArch64/directive-arch.s9
-rw-r--r--llvm/test/MC/AArch64/directive-cpu.s4
2 files changed, 11 insertions, 2 deletions
diff --git a/llvm/test/MC/AArch64/directive-arch.s b/llvm/test/MC/AArch64/directive-arch.s
index e32443876b6..7dfcdb4598f 100644
--- a/llvm/test/MC/AArch64/directive-arch.s
+++ b/llvm/test/MC/AArch64/directive-arch.s
@@ -8,3 +8,12 @@
# CHECK: aesd v0.16b, v2.16b
# CHECK: eor v0.16b, v0.16b, v2.16b
+// PR32873: without extra features, '.arch' is currently ignored.
+// Add an unrelated feature to accept the directive.
+ .arch armv8.1-a+crypto
+ casa w5, w7, [x20]
+# CHECK: casa w5, w7, [x20]
+
+ .arch armv8-a+lse
+ casa w5, w7, [x20]
+# CHECK: casa w5, w7, [x20]
diff --git a/llvm/test/MC/AArch64/directive-cpu.s b/llvm/test/MC/AArch64/directive-cpu.s
index d645e54e470..2c3ba0c1122 100644
--- a/llvm/test/MC/AArch64/directive-cpu.s
+++ b/llvm/test/MC/AArch64/directive-cpu.s
@@ -36,10 +36,10 @@
aesd v0.16b, v2.16b
- .cpu generic+v8.1a+nolse
+ .cpu generic+nolse
casa w5, w7, [x20]
- .cpu generic+v8.1a+lse
+ .cpu generic+lse
casa w5, w7, [x20]
// NOTE: the errors precede the actual output! The errors appear in order
OpenPOWER on IntegriCloud