diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp index 5c2afe7ea82a2d8c81adb2d304bafe93fdc3e00c..0ead8727fa95ad742d680d87689c61469be46c42 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_color_ra.cpp @@ -91,7 +91,7 @@ bool LiveRange::IsRematerializable(AArch64CGFunc &cgFunc, uint8 rematLevel) cons return false; } const MIRIntConst *intConst = static_cast(rematInfo.mirConst); - return intConst->GetValue() >= 0 && intConst->GetValue() <= 255; + return intConst->GetValue() >= -65538 && intConst->GetValue() <= 65537; } case OP_addrof: { if (rematLevel < rematAddr) { @@ -148,7 +148,6 @@ std::vector LiveRange::Rematerialize(AArch64CGFunc *cgFunc, CG *cg = cgFunc->GetCG(); switch (op) { case OP_constval: - break; switch (rematInfo.mirConst->GetKind()) { case kConstInt: { MIRIntConst *intConst = const_cast(