I am using the following code to perform multiplication using DS5 ARM C Compiler 5. The compiler throws build errors stating expected a ")"
static __inline int32_t multiply(int32_t x, int32_t y)
{
__asm volatile(
"mul %0, %1, %2\n\t"
: "=a"(y) // error pointed to this line
: "r"(x), "a"(y));
return y;
}
Note: target --cpu is armV7a. Is there any way to overcome this error?