Add OpFDiv

This commit is contained in:
ReinUsesLisp 2018-11-04 03:19:02 -03:00
parent 27a0b4f17e
commit c502cfd4b2
2 changed files with 4 additions and 0 deletions

View file

@ -292,6 +292,9 @@ class Module {
/// Unsigned-integer division of Operand 1 divided by Operand 2.
Id OpUDiv(Id result_type, Id operand_1, Id operand_2);
/// Floating-point division of Operand 1 divided by Operand 2.
Id OpFDiv(Id result_type, Id operand_1, Id operand_2);
/// Integer addition of Operand 1 and Operand 2.
Id OpIAdd(Id result_type, Id operand_1, Id operand_2);

View file

@ -29,6 +29,7 @@ namespace Sirit {
DEFINE_UNARY(OpFNegate, spv::Op::OpFNegate);
DEFINE_BINARY(OpUDiv, spv::Op::OpUDiv)
DEFINE_BINARY(OpFDiv, spv::Op::OpFDiv)
DEFINE_BINARY(OpIAdd, spv::Op::OpIAdd)
} // namespace Sirit