Commit 1c79fba8 authored by Tom Zhao's avatar Tom Zhao
Browse files

xz1919: hotfix: resolved an issue where divZero.wacc in runtimeErr will not pass

parent 9fe58573
......@@ -110,8 +110,8 @@ public class Utils {
Binop.MUL, ((x, y) -> arithmeticWithCheck(x, y, Math::multiplyExact)),
Binop.BITAND, ((x, y) -> y == 0 ? null : new IntegerNode(x & y, AssemblyArchitecture.ARMv6)),
Binop.BITOR, ((x, y) -> y == 0 ? null : new IntegerNode(x | y, AssemblyArchitecture.ARMv6)),
Binop.DIV, ((x, y) -> new IntegerNode(x / y, AssemblyArchitecture.ARMv6)),
Binop.MOD, ((x, y) -> new IntegerNode(x % y, AssemblyArchitecture.ARMv6))
Binop.DIV, ((x, y) -> y == 0 ? null : new IntegerNode(x / y, AssemblyArchitecture.ARMv6)),
Binop.MOD, ((x, y) -> y == 0 ? null : new IntegerNode(x % y, AssemblyArchitecture.ARMv6))
);
public static final Map<Binop, BiFunction<Integer, Integer, Boolean>> cmpMap = Map.of(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment