5.3.1 merge

pull/81/head
dibyendumajumdar 9 years ago
parent e24a3a21ef
commit 9658d2d954

@ -269,7 +269,7 @@ end
checkcompt("divide by zero", "return 2 // 0")
checkcompt(msgf2i, "return 2.3 >> 0")
checkcompt(msgf2i, ("return 2.0^%d & 1"):format(intbits - 1))
checkcompt("field 'huge'", "return math.huge << 1")
checkcompt("has no integer representation", "return math.huge << 1")
checkcompt(msgf2i, ("return 1 | 2.0^%d"):format(intbits - 1))
checkcompt(msgf2i, "return 2.3 ~ '0.0'")

@ -737,8 +737,8 @@ bool RaviCodeGenerator::canCompile(Proto *p) {
case OP_RAVI_BNOT_I:
case OP_RAVI_SHL_II:
case OP_RAVI_SHR_II:
// case OP_SHR:
// case OP_SHL:
case OP_SHR:
case OP_SHL:
break;
default:
return false;
@ -1661,4 +1661,4 @@ void RaviCodeGenerator::scan_jump_targets(RaviFunctionDef *def, Proto *p) {
}
}
}
}
}

Loading…
Cancel
Save