HIR: Add opcode SET_ROUNDING_MODE (taking FPSCR as an argument)

This commit is contained in:
Dr. Chat
2017-05-12 14:05:27 -05:00
parent dbece71945
commit 82efbd7bc5
5 changed files with 36 additions and 0 deletions

View File

@@ -1269,6 +1269,12 @@ void HIRBuilder::Prefetch(Value* address, size_t length,
void HIRBuilder::MemoryBarrier() { AppendInstr(OPCODE_MEMORY_BARRIER_info, 0); }
void HIRBuilder::SetRoundingMode(Value* value) {
ASSERT_INTEGER_TYPE(value);
Instr* i = AppendInstr(OPCODE_SET_ROUNDING_MODE_info, 0);
i->set_src1(value);
}
Value* HIRBuilder::Max(Value* value1, Value* value2) {
ASSERT_TYPES_EQUAL(value1, value2);