Commit 4274e71c authored by Jaideep Bajwa's avatar Jaideep Bajwa Committed by Commit Bot

PPC/S390: Fix to use 32 bit load

The testcase was failing on BE, fix to use 32bit load
before calling testbit.

R=joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
Log=N

Bug: 
Change-Id: I075666b47dd90b6341ba7b4031cd4be96e8c1bf9
Reviewed-on: https://chromium-review.googlesource.com/628659Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Commit-Queue: Jaideep Bajwa <bjaideep@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#47556}
parent 1169f55b
......@@ -1082,8 +1082,9 @@ static void MaybeTailCallOptimizedCodeSlot(MacroAssembler* masm,
// Check if the optimized code is marked for deopt. If it is, call the
// runtime to clear it.
Label found_deoptimized_code;
__ LoadP(scratch2, FieldMemOperand(optimized_code_entry,
Code::kKindSpecificFlags1Offset));
__ LoadWordArith(
scratch2,
FieldMemOperand(optimized_code_entry, Code::kKindSpecificFlags1Offset));
__ TestBit(scratch2, Code::kMarkedForDeoptimizationBit, r0);
__ bne(&found_deoptimized_code, cr0);
......
......@@ -1081,7 +1081,7 @@ static void MaybeTailCallOptimizedCodeSlot(MacroAssembler* masm,
// Check if the optimized code is marked for deopt. If it is, call the
// runtime to clear it.
Label found_deoptimized_code;
__ LoadP(scratch2, FieldMemOperand(optimized_code_entry,
__ LoadW(scratch2, FieldMemOperand(optimized_code_entry,
Code::kKindSpecificFlags1Offset));
__ TestBit(scratch2, Code::kMarkedForDeoptimizationBit, r0);
__ bne(&found_deoptimized_code);
......
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