targetCost = numBits == 64 ? 6 : 4;
} else {
targetCost = 2;
}
if (cost <= targetCost) {
<BUG>RegisterOperand val1Operand = op1.asRegister();
</BUG>
RegisterOperand resultOperand = numBits == 32 ? regpool.makeTempInt() : regpool.makeTempLong();
Instruction move;
if ((val2 & 1) == 1) {

targetCost = numBits == 64 ? 6 : 4;
} else {
targetCost = 2;
}
if (cost <= targetCost) {
RegisterOperand val1Operand = op1.copy().asRegister();
RegisterOperand resultOperand = numBits == 32 ? regpool.makeTempInt() : regpool.makeTempLong();
Instruction move;
if ((val2 & 1) == 1) {
