diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-12-14 23:35:06 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-12-14 23:35:06 +0000 |
commit | 799ca9d1b7cfa8910ac27f8de4929bfbd278114d (patch) | |
tree | 486fd1c3003df9a72eb74c9082dbf835bf79625e /lib/Target/ARM/AsmParser/ARMAsmParser.cpp | |
parent | 9b1b3902882675e5ce35eacd639456bd648324b7 (diff) |
ARM NEON better assembly operand range checking for lane indices of VLD/VST.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index ffd1610d09..ed81ae053c 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -1116,11 +1116,31 @@ public: return VectorList.Count == 1 && VectorList.LaneIndex <= 7; } + bool isVecListOneDHWordIndexed() const { + if (Kind != k_VectorListIndexed) return false; + return VectorList.Count == 1 && VectorList.LaneIndex <= 3; + } + + bool isVecListOneDWordIndexed() const { + if (Kind != k_VectorListIndexed) return false; + return VectorList.Count == 1 && VectorList.LaneIndex <= 1; + } + bool isVecListTwoDByteIndexed() const { if (Kind != k_VectorListIndexed) return false; return VectorList.Count == 2 && VectorList.LaneIndex <= 7; } + bool isVecListTwoDHWordIndexed() const { + if (Kind != k_VectorListIndexed) return false; + return VectorList.Count == 2 && VectorList.LaneIndex <= 3; + } + + bool isVecListTwoDWordIndexed() const { + if (Kind != k_VectorListIndexed) return false; + return VectorList.Count == 2 && VectorList.LaneIndex <= 1; + } + bool isVectorIndex8() const { if (Kind != k_VectorIndex) return false; return VectorIndex.Val < 8; |