v
v copied to clipboard
asm bad operand with opcode error
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
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.