4 * Checks that registers contain what we expect, ie. they were not clobbered by
7 * r15: pattern to check registers against.
9 * At the end r3 == 0 if everything's OK.
11 nop # guaranteed to be illegal in reverse-endian
15 addi r9,r15,4 # check r4
18 lis r9,0x00FF # check CR
25 addi r9,r15,32 # check LR
29 addi r9,r15,5 # check r5
32 addi r9,r15,6 # check r6
35 addi r9,r15,7 # check r7
38 addi r9,r15,8 # check r8
41 addi r9,r15,13 # check r13
44 addi r9,r15,14 # check r14
47 addi r9,r15,16 # check r16
50 addi r9,r15,17 # check r17
53 addi r9,r15,18 # check r18
56 addi r9,r15,19 # check r19
59 addi r9,r15,20 # check r20
62 addi r9,r15,21 # check r21
65 addi r9,r15,22 # check r22
68 addi r9,r15,23 # check r23
71 addi r9,r15,24 # check r24
74 addi r9,r15,25 # check r25
77 addi r9,r15,26 # check r26
80 addi r9,r15,27 # check r27
83 addi r9,r15,28 # check r28
86 addi r9,r15,29 # check r29
89 addi r9,r15,30 # check r30
92 addi r9,r15,31 # check r31
99 2: li r0, __NR_switch_endian