On Thu, Mar 08, 2018 at 06:05:04AM -0300, Alexandre Oliva wrote: > On Mar 6, 2018, Jakub Jelinek <ja...@redhat.com> wrote: > > > I'm afraid I haven't understood yet why we need labels instead of compiler > > assigned numbers for the views, > > The compiler can't determine points at which the insn address changes > reliably (or at all). It's impossible in the general case, considering > that alignment requests might be fulfilled by an assembler without any > address change, if the current address was just right, and only the > assembler would know that.
An upper bound would be fine, count any potential spot where you introduce a view and if the upper bound fits into 8-bit value, use data1, if into 16-bit value, use data2, otherwise use data4. Jakub