Wenyong Huang and GitHub
177aa4fc79
Fix aot rotl/rotr 0 issue ( #1285 )
...
Fix the issue reported in #1282 .
When i32/i64 rotate (rotl/rotr) with 0, the LLVM IRs translated are:
left<<0 | left>>64 and left >>0 | left<<64
The value of left >> 64 and left <<64 in LLVM are treated as poison,
which causes invalid result when executing the aot function.
Directly return left when right is 0 to fix the issue.
2022-07-12 13:43:56 +08:00
..
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2022-06-28 14:53:01 +08:00
2022-06-20 13:13:41 +08:00
2022-06-20 13:13:41 +08:00
2021-10-13 15:13:00 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2021-12-16 21:39:23 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-07-12 13:43:56 +08:00
2021-10-13 15:13:00 +08:00
2021-10-13 15:13:00 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2021-10-13 15:13:00 +08:00
2022-06-28 14:53:01 +08:00
2022-06-28 14:53:01 +08:00
2022-06-28 14:53:01 +08:00
2021-10-26 16:32:52 +08:00
2022-06-20 13:13:41 +08:00
2021-11-30 17:10:14 +08:00