mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-22 23:23:39 +00:00
Add OpFDiv
This commit is contained in:
parent
27a0b4f17e
commit
c502cfd4b2
2 changed files with 4 additions and 0 deletions
|
@ -292,6 +292,9 @@ class Module {
|
||||||
/// Unsigned-integer division of Operand 1 divided by Operand 2.
|
/// Unsigned-integer division of Operand 1 divided by Operand 2.
|
||||||
Id OpUDiv(Id result_type, Id operand_1, Id 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.
|
/// Integer addition of Operand 1 and Operand 2.
|
||||||
Id OpIAdd(Id result_type, Id operand_1, Id operand_2);
|
Id OpIAdd(Id result_type, Id operand_1, Id operand_2);
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ namespace Sirit {
|
||||||
DEFINE_UNARY(OpFNegate, spv::Op::OpFNegate);
|
DEFINE_UNARY(OpFNegate, spv::Op::OpFNegate);
|
||||||
|
|
||||||
DEFINE_BINARY(OpUDiv, spv::Op::OpUDiv)
|
DEFINE_BINARY(OpUDiv, spv::Op::OpUDiv)
|
||||||
|
DEFINE_BINARY(OpFDiv, spv::Op::OpFDiv)
|
||||||
DEFINE_BINARY(OpIAdd, spv::Op::OpIAdd)
|
DEFINE_BINARY(OpIAdd, spv::Op::OpIAdd)
|
||||||
|
|
||||||
} // namespace Sirit
|
} // namespace Sirit
|
Loading…
Reference in a new issue