OPCODE_IS_NAN

This commit is contained in:
Dr. Chat
2016-07-11 20:44:12 -05:00
parent fb87b7a3c3
commit 18ff97e6b6
6 changed files with 48 additions and 0 deletions

View File

@@ -1362,6 +1362,13 @@ Value* HIRBuilder::IsFalse(Value* value) {
return i->dest;
}
Value* HIRBuilder::IsNan(Value* value) {
Instr* i = AppendInstr(OPCODE_IS_NAN_info, 0, AllocValue(INT8_TYPE));
i->set_src1(value);
i->src2.value = i->src3.value = NULL;
return i->dest;
}
Value* HIRBuilder::CompareXX(const OpcodeInfo& opcode, Value* value1,
Value* value2) {
ASSERT_TYPES_EQUAL(value1, value2);