I'm using an ARM966E-S RISC-CPU and was wondering how to use the apparently available instruction set extensions for better DSP performance, e. g. an enhanced multiplier instruction.
I've read in the technical reference manual that these instruction set extensions are available but I don't know how to use/activate them.
Can anybody help?
Thanks in advance!
int64_t res = (int64_t)i * (int64_t)j;
and disassemble the result? Does it generateSMULL
? The long multiplications should just work. But for saturating and parallel arithmetic you will have to use intrinsics as they don't map nicely to "C". – NickJH Oct 23 '17 at 10:17-march=armv5te
to tell the compiler you have theextended
DSP instructions. The 'ARM ARM" (architecture reference manual) has details on what these things mean. There is also 'jazelle' and 's' variants.PLD
,LDRD' and
MULL` are additions. Look at gcc's config/arm directory which defines code generation. You can find what options you might need for your GCC version to get the compiler to emit stuff. – artless noise Oct 24 '17 at 15:08-mcpu=arm966e-s
and it should work for some versions of GCC; definitely use-mtune=arm966e-s
. In case you have some other compiler, you should specify. Please consider altering your tags for a particular compiler and possibly add 'C'? – artless noise Oct 24 '17 at 15:29