v icon indicating copy to clipboard operation
v copied to clipboard

asm bad operand with opcode error

Open flysand7 opened this issue 4 years ago • 1 comments

V version: V 0.2.2 47bf644, timestamp: 2021-07-09 03:27:16 +0300 OS: Linux 5.8.0-59-generic #66~20.04.1-Ubuntu

What did you do?

asm amd64 {
  mov
}

What did you expect to see?

An error about wrong instruction syntax/operand encoding

error: `mov` expects two operands

..or something similar

What did you see instead?

==================
/tmp/v/main.5598664863206295070.tmp.c:10187: error: bad operand with opcode 'mov'
...
==================
(Use `v -cg` to print the entire error message)

builder error: 
==================
C error. This should never happen.

If you were not working with C interop, this is a compiler bug, please report the bug using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang

flysand7 avatar Jul 09 '21 04:07 flysand7

Assembly is not checked by V currently, so it is expected that this happens. V might do this in the future, so I am not closing the issue.

crthpl avatar Jul 23 '21 16:07 crthpl