Fix function isUnalignedLoadStore.
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 11 Oct 2011 22:04:01 +0000 (22:04 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 11 Oct 2011 22:04:01 +0000 (22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141722 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsAsmPrinter.cpp

index e6beb56dc56387e6820cc268d71aa589428691c5..0e826812d0766112198900a901fb2f5da0443f0a 100644 (file)
 using namespace llvm;
 
 static bool isUnalignedLoadStore(unsigned Opc) {
-  return Opc == Mips::ULW || Opc == Mips::ULH || Opc == Mips::ULHu ||
-         Opc == Mips::USW || Opc == Mips::USH;
+  return Opc == Mips::ULW    || Opc == Mips::ULH    || Opc == Mips::ULHu ||
+         Opc == Mips::USW    || Opc == Mips::USH    ||
+         Opc == Mips::ULW_P8 || Opc == Mips::ULH_P8 || Opc == Mips::ULHu_P8 ||
+         Opc == Mips::USW_P8 || Opc == Mips::USH_P8;
 }
 
 void MipsAsmPrinter::EmitInstruction(const MachineInstr *MI) {