aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/InstPrinter
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-10-01 12:39:11 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-10-01 12:39:11 +0000
commitd1311ac171f9cb90cab4906a6c0e091b6b65b862 (patch)
tree9f20fecbfc305d0f05bd5b5420b6f953c4e8bad6 /lib/Target/ARM/InstPrinter
parent9813dbf396e63f6d4fd99fe0f6651e831cb7414b (diff)
downloadexternal_llvm-d1311ac171f9cb90cab4906a6c0e091b6b65b862.zip
external_llvm-d1311ac171f9cb90cab4906a6c0e091b6b65b862.tar.gz
external_llvm-d1311ac171f9cb90cab4906a6c0e091b6b65b862.tar.bz2
[ARM] Introduce the 'sevl' instruction in ARMv8.
This also removes the restriction on the immediate field of the 'hint' instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/InstPrinter')
-rw-r--r--lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 82c1294..efa8306 100644
--- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -84,6 +84,11 @@ void ARMInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
case 2: O << "\twfe"; break;
case 3: O << "\twfi"; break;
case 4: O << "\tsev"; break;
+ case 5:
+ if ((getAvailableFeatures() & ARM::HasV8Ops)) {
+ O << "\tsevl";
+ break;
+ } // Fallthrough for non-v8
default:
// Anything else should just print normally.
printInstruction(MI, O);