diff --git a/pkg/vm/instruction.go b/pkg/vm/instruction.go index e6b78ff4a..ac7e62fe6 100644 --- a/pkg/vm/instruction.go +++ b/pkg/vm/instruction.go @@ -137,10 +137,9 @@ func decodeInstructionValues(encoding uint64) ( ) { encodingWith2sComplement := encoding ^ 0x0000800080008000 // first, second and third 16 bits of the instruction encoding respectively - var mask uint64 = (1<> offsetBits) & mask) - off2Enc = int16((encodingWith2sComplement >> (2 * offsetBits)) & mask) + off0Enc = int16(encodingWith2sComplement) + off1Enc = int16(encodingWith2sComplement >> offsetBits) + off2Enc = int16(encodingWith2sComplement >> (2 * offsetBits)) // bits 48..63 flags = uint16(encodingWith2sComplement >> (3 * offsetBits)) return