27-04-2022, 06:21 AM
we have an additional question here, what about the following example, is it still acceptable:
please help clarify for this case, many thanks in advance!
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 + 1; // key point here, it's not simple return `tmp`
}
please help clarify for this case, many thanks in advance!
<t></t>