Added more destructive mnemonics
This commit is contained in:
parent
e5adcff1af
commit
e3264ba2e7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import "git.akyoto.dev/cli/q/src/build/asm"
|
||||||
|
|
||||||
func isDestructive(mnemonic asm.Mnemonic) bool {
|
func isDestructive(mnemonic asm.Mnemonic) bool {
|
||||||
switch mnemonic {
|
switch mnemonic {
|
||||||
case asm.MOVE, asm.ADD, asm.SUB, asm.MUL, asm.DIV:
|
case asm.MOVE, asm.ADD, asm.SUB, asm.MUL, asm.DIV, asm.MODULO, asm.AND, asm.OR, asm.XOR, asm.SHIFTL, asm.SHIFTRS, asm.NEGATE:
|
||||||
return true
|
return true
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue