On 2020/7/2 0:25, Richard Henderson wrote:
On 7/1/20 8:21 AM, LIU Zhiwei wrote:
-    tcg_gen_qemu_ld_i32(t1, addr, idx, memop & ~MO_SIGN);
+    tcg_gen_qemu_ld_i32(t1, addr, idx, memop);
+    tcg_gen_ext_i32(val, val, memop);
      gen(t2, t1, val);
I was just about to post a simiar patch.
The difference with mine is that I do not modify val:

-    gen(t2, t1, val);
+    tcg_gen_ext_i32(t2, val, memop);
+    gen(t2, t1, t2);
I see. So just ignore this patch.:-)

Zhiwei

r~


Reply via email to