summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/signext-zeroext.wast
blob: 480223851e6c5ae745e43161a29f7a77979f8045 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
(module
  (memory 0 4294967295)
  (export "z2s_func" $z2s_func)
  (export "s2z_func" $s2z_func)
  (export "z2s_call" $z2s_call)
  (export "s2z_call" $s2z_call)
  (func $z2s_func (param $$0 i32) (result i32)
    (local $$1 i32)
    (block $fake_return_waka123
      (block
        (set_local $$1
          (i32.const 24)
        )
        (br $fake_return_waka123
          (i32.shr_s
            (i32.shl
              (get_local $$0)
              (get_local $$1)
            )
            (get_local $$1)
          )
        )
      )
    )
  )
  (func $s2z_func (param $$0 i32) (result i32)
    (block $fake_return_waka123
      (block
        (br $fake_return_waka123
          (i32.and
            (get_local $$0)
            (i32.const 255)
          )
        )
      )
    )
  )
  (func $z2s_call (param $$0 i32) (result i32)
    (block $fake_return_waka123
      (block
        (br $fake_return_waka123
          (call $z2s_func
            (i32.and
              (get_local $$0)
              (i32.const 255)
            )
          )
        )
      )
    )
  )
  (func $s2z_call (param $$0 i32) (result i32)
    (local $$1 i32)
    (block $fake_return_waka123
      (block
        (set_local $$1
          (i32.const 24)
        )
        (br $fake_return_waka123
          (i32.shr_s
            (i32.shl
              (call $s2z_func
                (i32.shr_s
                  (i32.shl
                    (get_local $$0)
                    (get_local $$1)
                  )
                  (get_local $$1)
                )
              )
              (get_local $$1)
            )
            (get_local $$1)
          )
        )
      )
    )
  )
)
;; METADATA: { "asmConsts": {},"staticBump": 0 }