Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into merge-main
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Feb 11, 2021
2 parents 1f4297e + a2196ec commit 1698322
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions document/core/exec/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ Memory Instructions

a. Let :math:`n` be the integer for which :math:`\bytes_{\iN}(n) = b^\ast`.

b. Let :math:`c` be the result of computing :math:`\extend\F{\_}\sx_{N,|t|}(n)`.
b. Let :math:`c` be the result of computing :math:`\extend^{\sx}_{N,|t|}(n)`.

13. Else:

Expand All @@ -1009,7 +1009,7 @@ Memory Instructions
\\[1ex]
\begin{array}{lcl@{\qquad}l}
S; F; (\I32.\CONST~i)~(t.\LOAD{N}\K{\_}\sx~\memarg) &\stepto&
S; F; (t.\CONST~\extend\F{\_}\sx_{N,|t|}(n))
S; F; (t.\CONST~\extend^{\sx}_{N,|t|}(n))
\end{array}
\\ \qquad
\begin{array}[t]{@{}r@{~}l@{}}
Expand Down
8 changes: 8 additions & 0 deletions test/core/select.wast
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,14 @@
"type mismatch"
)

(assert_invalid
(module (func $type-num-vs-num (select (i32.const 1) (i64.const 1) (i32.const 1)) (drop)))
"type mismatch"
)
(assert_invalid
(module (func $type-num-vs-num (select (i32.const 1) (f32.const 1.0) (i32.const 1)) (drop)))
"type mismatch"
)
(assert_invalid
(module (func $type-num-vs-num (select (i32.const 1) (i64.const 1) (i32.const 1)) (drop)))
"type mismatch"
Expand Down

0 comments on commit 1698322

Please sign in to comment.