[llvm] r350174 - [AArch64] Accept "sve" as arch feature in assembler
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 31 02:22:05 PST 2018
Author: mstorsjo
Date: Mon Dec 31 02:22:04 2018
New Revision: 350174
URL: http://llvm.org/viewvc/llvm-project?rev=350174&view=rev
Log:
[AArch64] Accept "sve" as arch feature in assembler
Differential Revision: https://reviews.llvm.org/D56128
Added:
llvm/trunk/test/MC/AArch64/SVE/directive-arch.s
Modified:
llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Modified: llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp?rev=350174&r1=350173&r2=350174&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp Mon Dec 31 02:22:04 2018
@@ -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", {}},
Added: llvm/trunk/test/MC/AArch64/SVE/directive-arch.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/SVE/directive-arch.s?rev=350174&view=auto
==============================================================================
--- llvm/trunk/test/MC/AArch64/SVE/directive-arch.s (added)
+++ llvm/trunk/test/MC/AArch64/SVE/directive-arch.s Mon Dec 31 02:22:04 2018
@@ -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
More information about the llvm-commits
mailing list