29-06-2019, 09:39 AM
Hi,
Given the following case:
i wonder if we could take the above case as compliant, as we cannot have variable declaration and return value in assembly. Thanks
Given the following case:
Code:
static inline uint32_t test(void)
{
uint32_t tmp;
__asm__ __volatile__(
"mrc p15, 0, %0, c1, c0, 2\n\t"
: "=r" (tmp)
);
return tmp;
}
i wonder if we could take the above case as compliant, as we cannot have variable declaration and return value in assembly. Thanks