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
[MC][AsmParser] Check the list of supported condition codes #440
Comments
@sayon Will you please comment on what should be supported? |
The longer form (like .if_eq) is unnecessary, the short forms are sufficient to us. So,
@akiramenai @hedgar2017 do you think we should support something like |
@sayon I dislike unnecessary aliases personally. |
The issue here is that our |
@akiramenai @hedgar2017 @sayon Ok, let me assign this issue to you, so you will decide on the intended functionality :) |
I think we can go as @sayon said. |
As no one objects, I think we can close the issue. |
As this needs to be actually updated in the code (just a few lines), reopening it and assigning to myself. |
@akiramenai Is "gt or lt" predicate still used (see encoding) and which name should it have? |
The last remaining question to clarify is: the spec on encoding mentions 8 predicates:
The asm parser understands 7 of them: 6 explicit Reassigning the task - please feel free to close it if |
@atrosinenko it looks like we mislead you wrt |
Added support of |
At now, a number of conditional code names are supported across the instructions. These are short forms like
.eq
,.le
,.ge
as well as the longer forms mentioned in the VM Primer (such as.if_eq
,.if_le
,.if_ge
,.if_gt_or_eq
). The mapping of strings toEraVMCC
constants is listed inparseExplicitCondition
function in EraVMAsmParser.cpp file (permalink at the time of writing).After redesigning the assembly syntax, only the shorter form is likely to remain, so
parseExplicitCondition
function should be updated accordingly.The text was updated successfully, but these errors were encountered: