[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] tcg/tcg-op: nonatomic_op should work with smaller memop
From: |
Richard Henderson |
Subject: |
Re: [PATCH 1/1] tcg/tcg-op: nonatomic_op should work with smaller memop |
Date: |
Wed, 1 Jul 2020 09:25:56 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
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);
r~