Re: [PATCH 1/2] tcg: add dup_const_tl wrapper

2021-10-03 Thread Richard Henderson
On 9/28/21 4:54 PM, Philipp Tomsich wrote: dup_const always generates a uint64_t, which may exceed the size of a target_long (generating warnings with recent-enough compilers). To ensure that we can use dup_const both for 64bit and 32bit targets, this adds dup_const_tl, which wraps dup_const and

[PATCH 1/2] tcg: add dup_const_tl wrapper

2021-09-28 Thread Philipp Tomsich
dup_const always generates a uint64_t, which may exceed the size of a target_long (generating warnings with recent-enough compilers). To ensure that we can use dup_const both for 64bit and 32bit targets, this adds dup_const_tl, which wraps dup_const and legalises the truncation to target_long by c