Mike Stump <mikest...@comcast.net> writes: > On Nov 2, 2013, at 3:30 AM, Richard Sandiford > <rdsandif...@googlemail.com> wrote: >> Bah. After all that effort, it turns out that -- by design -- >> there is one special case where CONST_INTs are not sign-extended. > > I'm thinking this needs commentary in wide-int.h, though, not sure what > we'd say...
AIUI the only valid values of STORE_FLAG_VALUE are 1 and -1. If others are used, the rtx decompose routine would need to use the scratch array. So wide-int itself shouldn't need to care. It just means that a 1-precision rtx input can be sign or zero extended, just like for N-precision trees. And we indicate that by setting is_sign_extended to false. Thanks, Richard