File: i64-select.wast

package info (click to toggle)
binaryen 99-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 31,352 kB
  • sloc: cpp: 134,831; javascript: 61,839; ansic: 12,369; python: 4,620; pascal: 441; sh: 72; asm: 27; makefile: 6
file content (44 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;; Testing i64 select

(module
 (func $p (param $i i32) (result i32) (local.get $i))
 (func (param i32) (result i32)
  (return
   (select
    (call $p (i32.const -1))
    (call $p (i32.const 0))
    (i32.const 1)
   )
  )
 )
 (func (result i64)
  (return
   (select
    (i64.const -1)
    (i64.const 0)
    (i32.const 1)
   )   
  )    
 )
 (func $unreachable-select-i64 (result i64)
  (select
   (i64.const 1)
   (unreachable)
   (i32.const 268435456)
  )
 )
 (func $unreachable-select-i64-b (result i64)
  (select
   (unreachable)
   (i64.const 1)
   (i32.const 268435456)
  )
 )
 (func $unreachable-select-i64-c (result i64)
  (select
   (i64.const 1)
   (i64.const 1)
   (unreachable)
  )
 )
)