I'm trying to get object file (.o
) on Ubuntu using arm-linux-gnueabi-as
. Here's my set of instructions:
.thumb
.globl _start
_start:
cmp r0, r2
VST1.32 {D16-D17}, [R2]
When I run: arm-linux-gnueabi-as -mthumb thumb.s -o thumb.o
I'm getting this error:
thumb.s:7: Error: selected processor does not support Thumb mode `vst1.32 {D16-D17},[R2]'
I've tried using parameters -mcpu=<cpu name>
and -march=<arch name>
like -mcpu=cortex-m4
and -march=armv7-m
but I'm still getting the same error.
Is there any way to simulate another CPU to get thumb instruction set?
You need to specify -mfpu=neon
.