NewOpcode = Check.second;
if (Check.first == NOCHECK)
break;
- if (Check.first == CHECK8 &&
- ImmVal >= std::numeric_limits<int8_t>::min() &&
- ImmVal <= std::numeric_limits<int8_t>::max())
+ if (Check.first == CHECK8 && isInt<8>(ImmVal))
break;
- if (Check.first == CHECK32 &&
- ImmVal >= std::numeric_limits<int32_t>::min() &&
- ImmVal <= std::numeric_limits<int32_t>::max())
+ if (Check.first == CHECK32 && isInt<32>(ImmVal))
break;
}
if (NewOpcode == Inst.getOpcode())
NewOpcode = Check.second;
if (Check.first == NOCHECK)
break;
- if (Check.first == CHECK8 && Imm >= std::numeric_limits<int8_t>::min() &&
- Imm <= std::numeric_limits<int8_t>::max())
+ if (Check.first == CHECK8 && isInt<8>(Imm))
break;
- if (Check.first == CHECK32 &&
- Imm >= std::numeric_limits<int32_t>::min() &&
- Imm <= std::numeric_limits<int32_t>::max())
+ if (Check.first == CHECK32 && isInt<32>(Imm))
break;
}
if (NewOpcode == Inst.getOpcode())