6 .ascii "success: switch_endian_test\n\0"
11 .llong 0x5555AAAA5555AAAA
15 /* Load the pattern */
16 ld r15, pattern@TOC(%r2)
18 /* Setup CR, only CR2-CR4 are maintained */
23 /* Load the pattern slightly modified into the registers */
35 /* r9 - r12 are clobbered */
40 /* Skip r15 we're using it */
60 * Call the syscall to switch endian.
61 * It clobbers r9-r12, XER, CTR and CR0-1,5-7.
63 li r0, __NR_switch_endian
66 #include "check-reversed.S"
68 /* Flip back, r0 already has the switch syscall number */
69 .long 0x02000044 /* sc */
75 ld r4, message@got(%r2)
76 li r5, 28 /* strlen(message3) */