-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMOV silently drop the size annotation #74
Comments
I discovered that for |
The instructions descriptors should be slightly redesigned to explicitly document what sizes they support: currently this information is spread in the instruction syntax, semantics, parsing rules etc. Would it also fix this issue? |
I guess so. But I think this could also be solved without such a refactoring (probably a tedious work though). As usual, I am used to creating an issue as soon as I discover a strange behaviour, but this does not mean I care much about the issue being solved. I want to be sure that we have a trace of the issue. |
Btw, at least from a user perspective, this issue is similar to #69 where another annotation is silently ignored. |
In this case, the annotation is not ignored. It qualifies the argument to the intrinsic (here expression “x”). The result is always a If the failing line is changed to:
then we get a type-error about the argument:
I do not deny that there is some UX issue (it is difficult to properly use the |
Indeed, the annotation has an impact only the type of the argument. It's probably better to close this. |
When compiling the following program
we get a typing error because
xmm
is of typeu256
instead ofu128
. Indeed, the annotation_256
is silently dropped. It would be better to have an error in this case. Maybe it was done like this to avoid another constructorPrimXXX
?The text was updated successfully, but these errors were encountered: