aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp')
-rw-r--r--llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp b/llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
index 29b99a84a6cd..a62bd111cba9 100644
--- a/llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+++ b/llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
@@ -303,6 +303,14 @@ public:
bool isRegSeq() const { return isRegSeqTemplate<CSKY::R0, CSKY::R31>(); }
+ bool isRegSeqV1() const {
+ return isRegSeqTemplate<CSKY::F0_32, CSKY::F15_32>();
+ }
+
+ bool isRegSeqV2() const {
+ return isRegSeqTemplate<CSKY::F0_32, CSKY::F31_32>();
+ }
+
static bool isLegalRegList(unsigned from, unsigned to) {
if (from == 0 && to == 0)
return true;