From 8862dec3e4f717ed7ae9005bfc99151eced39249 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 31 Jul 2024 23:47:44 +0200 Subject: [PATCH] Added more destructive mnemonics --- src/build/register/isDestructive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/register/isDestructive.go b/src/build/register/isDestructive.go index 086ceca..9305367 100644 --- a/src/build/register/isDestructive.go +++ b/src/build/register/isDestructive.go @@ -4,7 +4,7 @@ import "git.akyoto.dev/cli/q/src/build/asm" func isDestructive(mnemonic asm.Mnemonic) bool { 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 default: return false