Added OpUMulExtended and OpSMulExtended

This commit is contained in:
psucien 2024-06-16 23:54:35 +02:00
parent fc65ebb5b5
commit 505cc66a2b
2 changed files with 8 additions and 0 deletions

View File

@ -672,6 +672,12 @@ public:
/// Floating-point multiplication of Operand 1 and Operand 2.
Id OpFMul(Id result_type, Id operand_1, Id operand_2);
/// Full signed interger multiplication of Operand 1 and Operand 2.
Id OpSMulExtended(Id result_type, Id operand_1, Id operand_2);
/// Full unsigned interger multiplication of Operand 1 and Operand 2.
Id OpUMulExtended(Id result_type, Id operand_1, Id operand_2);
/// Unsigned-integer division of Operand 1 divided by Operand 2.
Id OpUDiv(Id result_type, Id operand_1, Id operand_2);

View File

@ -30,6 +30,8 @@ DEFINE_BINARY(OpFAdd, spv::Op::OpFAdd)
DEFINE_BINARY(OpISub, spv::Op::OpISub)
DEFINE_BINARY(OpFSub, spv::Op::OpFSub)
DEFINE_BINARY(OpIMul, spv::Op::OpIMul)
DEFINE_BINARY(OpUMulExtended, spv::Op::OpUMulExtended)
DEFINE_BINARY(OpSMulExtended, spv::Op::OpSMulExtended)
DEFINE_BINARY(OpFMul, spv::Op::OpFMul)
DEFINE_BINARY(OpUDiv, spv::Op::OpUDiv)
DEFINE_BINARY(OpSDiv, spv::Op::OpSDiv)