[arm-gnu] Assembler error with VMSR NEON instruction

Lloyd Gomez Lloyd.Gomez at amlogic.com
Thu Dec 13 23:33:19 UTC 2012


Hello,

I am trying to compile some code for our Cortex-A9 with NEON device and am getting the following error when running the assembler:

arm-none-eabi-as -gdwarf2 -mcpu=cortex-a9 -mfpu=neon -mthumb-interwork -I/home/lloyd.gomez/work/project_m8/ucode  --defsym Install_Process_Irq=1 --defsym Install_Process_Fiq=1 host_boot_ddr_generic.s -o host_boot_ddr_generic.o
host_boot_ddr_generic.s: Assembler messages:
host_boot_ddr_generic.s:435: Error: operand 0 must be FPSCR -- `vmsr FPEXC,r0'

VMSR is a valid instruction so I don't know why the assembler is complaining.  This is too bad because I need this instruction to enable NEON in our chip.  Has anyone else run into this problem?  Here's my version of arm-none-eabi-as:

GNU assembler (Sourcery G++ Lite 2011.03-42) 2.20.51.20100809
Copyright 2010 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `arm-none-eabi'.

Thanks for your help,
Lloyd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/arm-gnu/attachments/20121213/4c480fb9/attachment.html>


More information about the arm-gnu mailing list