]> granicus.if.org Git - llvm/commitdiff
[AArch64] Accept "sve" as arch feature in assembler
authorMartin Storsjo <martin@martin.st>
Mon, 31 Dec 2018 10:22:04 +0000 (10:22 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 31 Dec 2018 10:22:04 +0000 (10:22 +0000)
Differential Revision: https://reviews.llvm.org/D56128

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/SVE/directive-arch.s [new file with mode: 0644]

index d2f78afe0a210264b76d1f80056d3e8161d25394..88766592e31aac07f97d3739442feb2d4faabc87 100644 (file)
@@ -2832,6 +2832,7 @@ static const struct Extension {
     {"tlb-rmi", {AArch64::FeatureTLB_RMI}},
     {"pan-rwv", {AArch64::FeaturePAN_RWV}},
     {"ccpp", {AArch64::FeatureCCPP}},
+    {"sve", {AArch64::FeatureSVE}},
     // FIXME: Unsupported extensions
     {"pan", {}},
     {"lor", {}},
diff --git a/test/MC/AArch64/SVE/directive-arch.s b/test/MC/AArch64/SVE/directive-arch.s
new file mode 100644 (file)
index 0000000..99ddf4e
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: llvm-mc -triple=aarch64 < %s | FileCheck %s
+
+.arch armv8-a+sve
+
+ptrue   p0.b, pow2
+// CHECK: ptrue   p0.b, pow2