Index: src/arm/assembler-arm.cc |
diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc |
index b0fa462c9fe81f1f10b7a8b4e11d0c331303840b..cd367535c76bb17d4d00faf875a80bfb07369693 100644 |
--- a/src/arm/assembler-arm.cc |
+++ b/src/arm/assembler-arm.cc |
@@ -1966,7 +1966,8 @@ void Assembler::mrs(Register dst, SRegister s, Condition cond) { |
void Assembler::msr(SRegisterFieldMask fields, const Operand& src, |
Condition cond) { |
- DCHECK(fields >= B16 && fields < B20); // at least one field set |
+ DCHECK((fields & 0x000f0000) != 0); // At least one field must be set. |
+ DCHECK(((fields & 0xfff0ffff) == CPSR) || ((fields & 0xfff0ffff) == SPSR)); |
Instr instr; |
if (!src.rm_.is_valid()) { |
// Immediate. |