5 #define TEST_PCADDU(N) \
12 asm volatile(""#N" %0, 0x104\n\t" \
13 ""#N" %1, 0x12345\n\t" \
14 : "=r"(rd1), "=r"(rd2) \
17 if (!strcmp(#N, "pcalau12i")) { \
18 rn = ((0x12345UL - 0x104) << a) & ~0xfff; \
20 rn = ((0x12345UL - 0x104) << a) + 4; \
26 TEST_PCADDU(pcaddu12i
)
27 TEST_PCADDU(pcaddu18i
)
28 TEST_PCADDU(pcalau12i
)