Search code examples
assemblyarmneon

Using ARM NEON instructions on a legacy assember


I have a Visual Studio 2008 C++03 project for Windows Mobile 6 where I would like to implement an ARM-NEON version of memcpy.

The ARM Info Center kindly provides an implementation:

; NEON memory copy with preload
NEONCopyPLD
      PLD [r1, #0xC0]
      VLDM r1!,{d0-d7}
      VSTM r0!,{d0-d7}
      SUBS r2,r2,#0x40
      BGE NEONCopyPLD

Unfortunately, the VS2008 ARM assembler doesn't support the NEON instruction set (though my processor is ARM Cortex-A8 based).

Is there any way I can supply the bytecode for those instructions so that the ARM Assembler will take it? Could I DCB or DCD the right values in?

Thanks


Solution

  • You can use DCI directive for "hex instructions":

    http://msdn.microsoft.com/en-us/library/ms863606.aspx