On 10/17/19 9:01 AM, Alex Bennée wrote:
>> +/*
>> + * Rely on the TCG guarantee that out of range shifts produce
>> + * unspecified results, not undefined behaviour (i.e. no trap).
>> + * Discard out-of-range results after the fact.
>> + */
>> +tcg_gen_ext8s_i32(lsh, b);
>>
Richard Henderson writes:
> These instructions shift left or right depending on the sign
> of the input, and 7 bits are significant to the shift. This
> requires several masks and selects in addition to the actual
> shifts to form the complete answer.
>
> That said, the operation is still a sm