Skip to content

ambiguity of the effect of instructions #1695

Answered by rossberg
kam1986 asked this question in Q&A
Discussion options

You must be logged in to vote

The former has type i64 → i64, the latter type i32 → i64. So they differ in how the operand is represented.

That said, I agree that something seems to be amiss in the specification – i64.extend32_s should extend the lower half of its operand, but the current definition of iextend fails to filter out the other bits. I think it should be

iextendM_s_N(i) = extend^s_M,N(wrap_N,M(i))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kam1986
Comment options

Answer selected by kam1986
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants