Detect unaligned loads/stores that have been added for Mips64 support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2011-12-24 03:07:37 +00:00
parent 5085681d9e
commit 9dfd4399a9

View File

@ -49,7 +49,14 @@ static bool isUnalignedLoadStore(unsigned Opc) {
return Opc == Mips::ULW || Opc == Mips::ULH || Opc == Mips::ULHu || return Opc == Mips::ULW || Opc == Mips::ULH || Opc == Mips::ULHu ||
Opc == Mips::USW || Opc == Mips::USH || Opc == Mips::USW || Opc == Mips::USH ||
Opc == Mips::ULW_P8 || Opc == Mips::ULH_P8 || Opc == Mips::ULHu_P8 || Opc == Mips::ULW_P8 || Opc == Mips::ULH_P8 || Opc == Mips::ULHu_P8 ||
Opc == Mips::USW_P8 || Opc == Mips::USH_P8; Opc == Mips::USW_P8 || Opc == Mips::USH_P8 ||
Opc == Mips::ULD || Opc == Mips::ULW64 || Opc == Mips::ULH64 ||
Opc == Mips::ULHu64 || Opc == Mips::USD || Opc == Mips::USW64 ||
Opc == Mips::USH64 ||
Opc == Mips::ULD_P8 || Opc == Mips::ULW64_P8 ||
Opc == Mips::ULH64_P8 || Opc == Mips::ULHu64_P8 ||
Opc == Mips::USD_P8 || Opc == Mips::USW64_P8 ||
Opc == Mips::USH64_P8;
} }
static bool isDirective(unsigned Opc) { static bool isDirective(unsigned Opc) {