Commit 5d72f1ae authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

s390: load zero on r0 instead of xgr

xgr kills condition code on the branch

R=joransiu@ca.ibm.com

Change-Id: I90a75760c96319d8f27512395f904796a114c5e9
Reviewed-on: https://chromium-review.googlesource.com/950135Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#51748}
parent 7b43e11c
......@@ -2459,7 +2459,7 @@ void CodeGenerator::AssembleBranchPoisoning(FlagsCondition condition,
}
condition = NegateFlagsCondition(condition);
__ XorP(r0, r0);
__ LoadImmP(r0, Operand::Zero());
__ LoadOnConditionP(FlagsConditionToCondition(condition, kArchNop),
kSpeculationPoisonRegister, r0);
}
......
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