Thumb disassembler was erroneously rejecting "blx sp" instruction.
[oota-llvm.git] / utils / TableGen / ARMDecoderEmitter.cpp
index e48ac1e67882b930fc363bc93da7c422e4030b96..07ff213bed9248553745106c070a85c39f4503bb 100644 (file)
@@ -1624,6 +1624,10 @@ ARMDEBackend::populateInstruction(const CodeGenInstruction &CGI,
     if (Name == "tBL" || Name == "tBLXi" || Name == "tBLXr")
       return false;
 
+    // A8.6.25 BX.  Use the generic tBX_Rm, ignore tBX_RET and tBX_RET_vararg.
+    if (Name == "tBX_RET" || Name == "tBX_RET_vararg")
+      return false;
+
     // Ignore the TPsoft (TLS) instructions, which conflict with tBLr9.
     if (Name == "tTPsoft" || Name == "t2TPsoft")
       return false;