wasm-micro-runtime/core
Marcin Kolny 72b34eaf30
Fix AOT shift operations for indirect constants (#2627)
When doing more investigations related to this PR:
  https://github.com/bytecodealliance/wasm-micro-runtime/pull/2619
We found that in some scenarios the constant might not be directly
available to the LLVM IR builder, e.g.:
```
  (func $const_ret (result i32)
    i32.const -5
  )
  (func $foo
    (i32.shr_u (i32.const -1) (call $const_ret))
    (i32.const 31)
  )
```
In that case, the right parameter to `i32.shr_u` is not constant, therefore
the `SHIFT_COUNT_MASK` isn't applied. However, when the optimization
is enabled (`--opt-level` is 2 or 3), the optimization passes resolve the
call into constant, and that constant is poisoned, causing the compiler to
resolve the whole function to an exception.
2023-10-11 11:22:34 +08:00
..
app-framework Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
app-mgr Readme refactoring (#2038) 2023-03-19 08:05:57 +08:00
deps wasi-nn: Simplify cmake and headers' location (#2308) 2023-06-26 09:29:05 +08:00
iwasm Fix AOT shift operations for indirect constants (#2627) 2023-10-11 11:22:34 +08:00
shared Enable AOT usage on M1 mac (#2618) 2023-10-07 16:05:10 +08:00
config.h Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
version.h Update version number and release notes (#2378) 2023-08-22 08:55:36 +08:00