Skip to content

Commit 2d1b3b1

Browse files
XMadridatc-github
authored andcommitted
fix fuzz (#733)
1 parent 78ac23b commit 2d1b3b1

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

RELEASENOTES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Wasm Compiler Release Notes
22

3+
## 3.0.8
4+
5+
- Fixed wrong machine type for type_cast instruction
6+
37
## 3.0.7
8+
49
- Fix encoding compatibility
510

611
## 3.0.6
12+
713
- Fix SPDX format
814

915
## 3.0.5

src/core/compiler/common/Common.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ StackElement Common::getResultStackElement(StackElement const *const stackElemen
12351235
} else if (baseType == StackType::TEMP_RESULT) {
12361236
StackElement res{*stackElement};
12371237
res.type = MachineTypeUtil::toStackTypeFlag(type) | StackType::TEMP_RESULT;
1238+
res.data.variableData.location.calculationResult.machineType = type;
12381239
return res;
12391240
} else {
12401241
return *stackElement;

tests/testsuite/mix_32_and_64_target_hint.wast

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,25 @@
9191
(global (;0;) (mut i64) (i64.const -70368744177664))
9292
(export "const-to-global" (func $const-to-global))
9393
)
94-
(assert_return (invoke "const-to-global") (i64.const 0))
94+
(assert_return (invoke "const-to-global") (i64.const 0))
95+
96+
(module
97+
(func (param i64 i32 f64 i64 i32 i32 i32)
98+
i64.const 1711897462
99+
local.tee 3
100+
i32.const 323962463
101+
local.tee 5
102+
if (result f32)
103+
f32.const 1
104+
else
105+
f32.const 2
106+
end
107+
f32.const -0x1p+0
108+
f32.ge
109+
i64.extend_i32_u
110+
i64.rem_s
111+
i64.const 5120369967748222491
112+
i64.eq
113+
local.set 6
114+
)
115+
)

0 commit comments

Comments
 (0)