Skip to content

Commit 063d34e

Browse files
authored
Merge upstream (WebAssembly#133)
2 parents 1f4297e + 1698322 commit 063d34e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

document/core/exec/instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ Memory Instructions
986986

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

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

991991
13. Else:
992992

@@ -1009,7 +1009,7 @@ Memory Instructions
10091009
\\[1ex]
10101010
\begin{array}{lcl@{\qquad}l}
10111011
S; F; (\I32.\CONST~i)~(t.\LOAD{N}\K{\_}\sx~\memarg) &\stepto&
1012-
S; F; (t.\CONST~\extend\F{\_}\sx_{N,|t|}(n))
1012+
S; F; (t.\CONST~\extend^{\sx}_{N,|t|}(n))
10131013
\end{array}
10141014
\\ \qquad
10151015
\begin{array}[t]{@{}r@{~}l@{}}

test/core/select.wast

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,14 @@
405405
"type mismatch"
406406
)
407407

408+
(assert_invalid
409+
(module (func $type-num-vs-num (select (i32.const 1) (i64.const 1) (i32.const 1)) (drop)))
410+
"type mismatch"
411+
)
412+
(assert_invalid
413+
(module (func $type-num-vs-num (select (i32.const 1) (f32.const 1.0) (i32.const 1)) (drop)))
414+
"type mismatch"
415+
)
408416
(assert_invalid
409417
(module (func $type-num-vs-num (select (i32.const 1) (i64.const 1) (i32.const 1)) (drop)))
410418
"type mismatch"

0 commit comments

Comments
 (0)