On 01/07/2011 03:10 PM, Peter Maydell wrote: > Unless I've missed something, deposit_i32 is basically the same > as the ARM BFI instruction, so for ARM we could use deposit_i32 in > the implementation of BFI (and conversely implement deposit_i32 > using BFI when we're generating for an ARMv6T2 or better host.)
That's correct. I'll admit to not knowing the arm/thumb variants very well. While I can see that gcc sometimes implements its similar "insv" operation with BFC and BFI, knowing under what conditions those are available is ... slightly complex to say the least. r~