Skip to content
Snippets Groups Projects
Commit a0332aca authored by Richard Henderson's avatar Richard Henderson
Browse files

tcg/s390x: Issue XILF directly for xor_i32


There is only one instruction that is applicable
to a 32-bit immediate xor.

Reviewed-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 668ce343
No related branches found
No related tags found
No related merge requests found
......@@ -2005,7 +2005,7 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc,
a0 = args[0], a1 = args[1], a2 = (uint32_t)args[2];
if (const_args[2]) {
tcg_out_mov(s, TCG_TYPE_I32, a0, a1);
tgen_xori(s, TCG_TYPE_I32, a0, a2);
tcg_out_insn(s, RIL, XILF, a0, a2);
} else if (a0 == a1) {
tcg_out_insn(s, RR, XR, args[0], args[2]);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment