This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Tests For ARM/Neon
On Wednesday 06 August 2008, Joseph S. Myers wrote:
> On Wed, 6 Aug 2008, Joel Sherrill wrote:
> > $ arm-rtems4.9-gcc -mfpu=neon -mfloat-abi=softfp -mcpu=arm7tdmi -c
> > test_neon.c /tmp/ccBzigjD.s: Assembler messages:
> > /tmp/ccBzigjD.s:13: Error: selected processor does not support `vldr
> > d18,[fp,#-32]'
> >
> >
> > So with that combination of options gcc defines __ARM_NEON__.
> > And gas ends up knowing the instructions are invalid.
>
> The compiler generates
>
> .cpu arm7tdmi
> .fpu neon
>
> for this example.
Oh, I bet this is a crufty old target that doesn't use the .cpu/.fpu
directives. The gcc driver is almost certainly passing the wrong set of
commandline options to the the assembler. I find it hard to care about
non-eabi targets nowadays.
Paul