mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-07 20:50:56 +00:00
s390x: Actually use "load on condition" for conditional moves
Although the implementation of the cond_move insn is prepared to emit "load on condition" instructions, it doesn't, because of a reversed check. The check is supposed to prevent emitting LOCx instructions when the condition code mask is set to "always", but it's accidentally negated. Fix the reversal of the check, so LOCx instructions are actually emitted when applicable.
This commit is contained in:
parent
b0eb7193a5
commit
95df121886
@ -10105,7 +10105,7 @@ s390_insn_cond_move_emit(UChar *buf, const s390_insn *insn)
|
||||
|
||||
if (s390_host_has_lsc) {
|
||||
/* LOCx is not the preferred way to implement an unconditional load. */
|
||||
if (cond != S390_CC_ALWAYS) goto use_branch_insn;
|
||||
if (cond == S390_CC_ALWAYS) goto use_branch_insn;
|
||||
|
||||
switch (src.tag) {
|
||||
case S390_OPND_REG:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user