diff options
author | Max Graey <maxgraey@gmail.com> | 2021-07-20 22:28:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 12:28:07 -0700 |
commit | e67d50d5a6290ec9968344ee5712ebf62847fea8 (patch) | |
tree | f906ec3b52daa307b6b810c4a8548999ca727c11 /src/tools/wasm-reduce.cpp | |
parent | fb9de9d391a7272548dcc41cd8229076189d7398 (diff) | |
download | binaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.tar.gz binaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.tar.bz2 binaryen-e67d50d5a6290ec9968344ee5712ebf62847fea8.zip |
[Optimize Instructions] Simplify sign extentions (#4004)
requiring sign-extension:
```
i64(x) << 56 >> 56 ==> i64.extend8_s(x)
i64(x) << 48 >> 48 ==> i64.extend16_s(x)
i64(x) << 32 >> 32 ==> i64.extend32_s(x)
i64.extend_i32_s(i32.wrap_i64(x)) ==> i64.extend32_s(x)
```
general:
```
i32.wrap_i64(i64.extend_i32_s(x)) ==> x
i32.wrap_i64(i64.extend_i32_u(x)) ==> x
```
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
0 files changed, 0 insertions, 0 deletions