[PATCH, ARM] Misaligned access support for ARM Neon

Mark Mitchell mark@codesourcery.com
Tue Jun 8 15:25:00 GMT 2010


Julian Brown wrote:

> This patch actually doesn't try to do anything to address the mapping
> between the memory representation of vectors and element numberings --
> it just allows misaligned accesses to be used (using element
> load/store instructions), albeit only in little-endian mode. I believe
> this makes the autovectoriser much more useful for real-world code (i.e.
> able to trigger in many more cases, and/or able to produce better
> output).

This seems to me to be a monotonic improvement in the capabilities of
the ARM back-end, and an accurate model of the little-endian ARM NEON
ISA.  So, while solving the general problem (which may require
significant work on the generic parts of the compiler) is certainly
desirable, it seems to me that this is a definite  win, with no major
downside.

Richard, you wrote:

> I've no particular objection to this patch

Is that an approval, or would you like to discuss further?

I'm not trying to apply pressure, and, for avoidance of doubt, my
opinion above is my opinion as a (lapsed) GCC engineer, not anything
RM/SC-ish.  Just want to understand where we stand, and trying to flush
our changes...

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list