shader: Add integer division opcodes
This commit is contained in:
parent
43aa695a04
commit
95761cc6a7
9 changed files with 37 additions and 0 deletions
|
@ -1145,6 +1145,10 @@ U32 IREmitter::IMul(const U32& a, const U32& b) {
|
|||
return Inst<U32>(Opcode::IMul32, a, b);
|
||||
}
|
||||
|
||||
U32 IREmitter::IDiv(const U32& a, const U32& b, bool is_signed) {
|
||||
return Inst<U32>(is_signed ? Opcode::SDiv32 : Opcode::UDiv32, a, b);
|
||||
}
|
||||
|
||||
U32U64 IREmitter::INeg(const U32U64& value) {
|
||||
switch (value.Type()) {
|
||||
case Type::U32:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue