1# 'Compare & Branch' instructions. 2 .data 3foodata: .word 42 4 .text 5footext: 6 7 .global cmpbeqb 8cmpbeqb: 9cmpbeqb r1, r2, 0x56 10cmpbeqb r3, r4, 0x4348 11cmpbeqb $0, r5, 0x36 12cmpbeqb $1, r6, 0x345678 13 14 .global cmpbneb 15cmpbneb: 16cmpbneb r7, r8, 250 17cmpbneb r9, r10, 0xf000 18cmpbneb $2, r11, 0x2 19cmpbneb $3, r12, 0xfffffe 20 21 .global cmpbhib 22cmpbhib: 23cmpbhib r13, r14, 0400 24cmpbhib r15, ra, 258 25cmpbhib $4, sp, -0x2 26cmpbhib $-4, r1, -260 27 28 .global cmpblsb 29cmpblsb: 30cmpblsb r2, r3, 0x78 31cmpblsb r4, r5, 0x100 32cmpblsb $-1, r6, -0370 33cmpblsb $7, r7, -0x102 34 35 .global cmpbgtb 36cmpbgtb: 37cmpbgtb r8, r9, -250 38cmpbgtb r10, r11, 07700 39cmpbgtb $8, r12, 0xfe 40cmpbgtb $16, r13, 0xfffff2 41 42 .global cmpbleb 43cmpbleb: 44cmpbleb r14, r15, -0xfe 45cmpbleb ra, sp, -01000 46cmpbleb $0x10, r1, 066 47cmpbleb $020, r2, -0xffff02 48 49 .global cmpblob 50cmpblob: 51cmpblob r3, r4, -070 52cmpblob r5, r6, -0xfffffe 53cmpblob $32, r7, +0x24 54cmpblob $0x20, r8, 16777214 55 56 .global cmpbhsb 57cmpbhsb: 58cmpbhsb r9, r10, 0xf0 59cmpbhsb r11, r12, 0402 60cmpbhsb $040, r13, -254 61cmpbhsb $20, r14, 0x1000 62 63 .global cmpbltb 64cmpbltb: 65cmpbltb r15, ra, 0x10 66cmpbltb sp, r1, 1122 67cmpbltb $12, r2, -020 68cmpbltb $0xc, r3, -0x800000 69 70 .global cmpbgeb 71cmpbgeb: 72cmpbgeb r4, r5, 0x0 73cmpbgeb r6, r7, 0x400000 74cmpbgeb $48, r8, 0 75cmpbgeb $060, r9, -0x100000 76 77 78 .global cmpbeqw 79cmpbeqw: 80cmpbeqw r1, r2, 0x56 81cmpbeqw r3, r4, 0x4348 82cmpbeqw $0, r5, 0x36 83cmpbeqw $1, r6, 0x345678 84 85 .global cmpbnew 86cmpbnew: 87cmpbnew r7, r8, 250 88cmpbnew r9, r10, 0xf000 89cmpbnew $2, r11, 0x2 90cmpbnew $3, r12, 0xfffffe 91 92 .global cmpbhiw 93cmpbhiw: 94cmpbhiw r13, r14, 0400 95cmpbhiw r15, ra, 258 96cmpbhiw $4, sp, -0x2 97cmpbhiw $-4, r1, -260 98 99 .global cmpblsw 100cmpblsw: 101cmpblsw r2, r3, 0x78 102cmpblsw r4, r5, 0x100 103cmpblsw $-1, r6, -0370 104cmpblsw $7, r7, -0x102 105 106 .global cmpbgtw 107cmpbgtw: 108cmpbgtw r8, r9, -250 109cmpbgtw r10, r11, 07700 110cmpbgtw $8, r12, 0xfe 111cmpbgtw $16, r13, 0xfffff2 112 113 .global cmpblew 114cmpblew: 115cmpblew r14, r15, -0xfe 116cmpblew ra, sp, -01000 117cmpblew $0x10, r1, 066 118cmpblew $020, r2, -0xffff02 119 120 .global cmpblow 121cmpblow: 122cmpblow r3, r4, -070 123cmpblow r5, r6, -0xfffffe 124cmpblow $32, r7, +0x24 125cmpblow $0x20, r8, 16777214 126 127 .global cmpbhsw 128cmpbhsw: 129cmpbhsw r9, r10, 0xf0 130cmpbhsw r11, r12, 0402 131cmpbhsw $040, r13, -254 132cmpbhsw $20, r14, 0x1000 133 134 .global cmpbltw 135cmpbltw: 136cmpbltw r15, ra, 0x10 137cmpbltw sp, r1, 1122 138cmpbltw $12, r2, -020 139cmpbltw $0xc, r3, -0x800000 140 141 .global cmpbgew 142cmpbgew: 143cmpbgew r4, r5, 0x0 144cmpbgew r6, r7, 0x400000 145cmpbgew $48, r8, 0 146cmpbgew $060, r9, -0x100000 147 148 149 .global cmpbeqd 150cmpbeqd: 151cmpbeqd r1, r2, 0x56 152cmpbeqd r3, r4, 0x4348 153cmpbeqd $0, r5, 0x36 154cmpbeqd $1, r6, 0x345678 155 156 .global cmpbned 157cmpbned: 158cmpbned r7, r8, 250 159cmpbned r9, r10, 0xf000 160cmpbned $2, r11, 0x2 161cmpbned $3, r12, 0xfffffe 162 163 .global cmpbhid 164cmpbhid: 165cmpbhid r13, r14, 0400 166cmpbhid r15, ra, 258 167cmpbhid $4, sp, -0x2 168cmpbhid $-4, r1, -260 169 170 .global cmpblsd 171cmpblsd: 172cmpblsd r2, r3, 0x78 173cmpblsd r4, r5, 0x100 174cmpblsd $-1, r6, -0370 175cmpblsd $7, r7, -0x102 176 177 .global cmpbgtd 178cmpbgtd: 179cmpbgtd r8, r9, -250 180cmpbgtd r10, r11, 07700 181cmpbgtd $8, r12, 0xfe 182cmpbgtd $16, r13, 0xfffff2 183 184 .global cmpbled 185cmpbled: 186cmpbled r14, r15, -0xfe 187cmpbled ra, sp, -01000 188cmpbled $0x10, r1, 066 189cmpbled $020, r2, -0xffff02 190 191 .global cmpblod 192cmpblod: 193cmpblod r3, r4, -070 194cmpblod r5, r6, -0xfffffe 195cmpblod $32, r7, +0x24 196cmpblod $0x20, r8, 16777214 197 198 .global cmpbhsd 199cmpbhsd: 200cmpbhsd r9, r10, 0xf0 201cmpbhsd r11, r12, 0402 202cmpbhsd $040, r13, -254 203cmpbhsd $20, r14, 0x1000 204 205 .global cmpbltd 206cmpbltd: 207cmpbltd r15, ra, 0x10 208cmpbltd sp, r1, 1122 209cmpbltd $12, r2, -020 210cmpbltd $0xc, r3, -0x800000 211 212 .global cmpbged 213cmpbged: 214cmpbged r4, r5, 0x0 215cmpbged r6, r7, 0x400000 216cmpbged $48, r8, 0 217cmpbged $060, r9, -0x100000 218