Remove FIXME. Thumb2 MOV instruction will use separate custom tricks.
authorJim Grosbach <grosbach@apple.com>
Wed, 31 Aug 2011 18:39:39 +0000 (18:39 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 31 Aug 2011 18:39:39 +0000 (18:39 +0000)
When we want encoding T3 (the wide encoding), we can explicitly check for
that and twiddle the CanAcceptCarrySet accordingly. For now, just correctly
handle encodings T1 and T2 when in Thumb2 mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138879 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 274e14db9c0727b6e7e8e678b6edaba323d9e68d..bd3e8711ece4de206328e1247e82e7fade20ae53 100644 (file)
@@ -3004,9 +3004,7 @@ getMnemonicAcceptInfo(StringRef Mnemonic, bool &CanAcceptCarrySet,
       Mnemonic == "rsb" || Mnemonic == "rsc" || Mnemonic == "orn" ||
       Mnemonic == "sbc" || Mnemonic == "mla" || Mnemonic == "umull" ||
       Mnemonic == "eor" || Mnemonic == "smlal" || Mnemonic == "neg" ||
-      // FIXME: We need a better way. This really confused Thumb2
-      // parsing for 'mov'.
-      (Mnemonic == "mov" && !isThumbOne())) {
+      (Mnemonic == "mov" && !isThumb())) {
     CanAcceptCarrySet = true;
   } else {
     CanAcceptCarrySet = false;