| Index: src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| index ddacd2badf15026fd85c6fb9ce88781bd882522a..96debd9d24b0158a37a9f6ae04c654742e7f25e0 100644
|
| --- a/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| +++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc
|
| @@ -1707,12 +1707,15 @@ void LCodeGen::DoSubI(LSubI* instr) {
|
| } else {
|
| __ sub(result, left, EmitLoadRegister(right, ip));
|
| }
|
| -#if V8_TARGET_ARCH_PPC64
|
| if (can_overflow) {
|
| +#if V8_TARGET_ARCH_PPC64
|
| __ TestIfInt32(result, r0);
|
| +#else
|
| + __ TestIfInt32(scratch0(), result, r0);
|
| +#endif
|
| DeoptimizeIf(ne, instr, DeoptimizeReason::kOverflow);
|
| }
|
| -#endif
|
| +
|
| } else {
|
| if (right->IsConstantOperand()) {
|
| __ AddAndCheckForOverflow(result, left, -(ToOperand(right).immediate()),
|
|
|