1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -show-encoding | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker .text 5*9880d681SAndroid Build Coastguard Workertext_label: 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker add $4, -0x80000000 8*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 32768 # encoding: [0x00,0x80,0x01,0x3c] 9*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $1 # encoding: [0x20,0x20,0x81,0x00] 10*9880d681SAndroid Build Coastguard Worker add $4, -0x8001 11*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 65535 # encoding: [0xff,0xff,0x01,0x3c] 12*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $1, 32767 # encoding: [0xff,0x7f,0x21,0x34] 13*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $1 # encoding: [0x20,0x20,0x81,0x00] 14*9880d681SAndroid Build Coastguard Worker add $4, -0x8000 15*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $4, -32768 # encoding: [0x00,0x80,0x84,0x20] 16*9880d681SAndroid Build Coastguard Worker add $4, 0 17*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $4, 0 # encoding: [0x00,0x00,0x84,0x20] 18*9880d681SAndroid Build Coastguard Worker add $4, 0xFFFF 19*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $zero, 65535 # encoding: [0xff,0xff,0x01,0x34] 20*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $1 # encoding: [0x20,0x20,0x81,0x00] 21*9880d681SAndroid Build Coastguard Worker add $4, 0x10000 22*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 1 # encoding: [0x01,0x00,0x01,0x3c] 23*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $1 # encoding: [0x20,0x20,0x81,0x00] 24*9880d681SAndroid Build Coastguard Worker add $4, 0xFFFFFFFF 25*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $4, -1 # encoding: [0xff,0xff,0x84,0x20] 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Worker add $4, $5, -0x80000000 28*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 29*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $5 # encoding: [0x20,0x20,0x85,0x00] 30*9880d681SAndroid Build Coastguard Worker add $4, $5, -0x8001 31*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 32*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 33*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $5 # encoding: [0x20,0x20,0x85,0x00] 34*9880d681SAndroid Build Coastguard Worker add $4, $5, -0x8000 35*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $5, -32768 # encoding: [0x00,0x80,0xa4,0x20] 36*9880d681SAndroid Build Coastguard Worker add $4, $5, 0 37*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x20] 38*9880d681SAndroid Build Coastguard Worker add $4, $5, 0xFFFF 39*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $zero, 65535 # encoding: [0xff,0xff,0x04,0x34] 40*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $5 # encoding: [0x20,0x20,0x85,0x00] 41*9880d681SAndroid Build Coastguard Worker add $4, $5, 0x10000 42*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 43*9880d681SAndroid Build Coastguard Worker# CHECK: add $4, $4, $5 # encoding: [0x20,0x20,0x85,0x00] 44*9880d681SAndroid Build Coastguard Worker add $4, $5, 0xFFFFFFFF 45*9880d681SAndroid Build Coastguard Worker# CHECK: addi $4, $5, -1 # encoding: [0xff,0xff,0xa4,0x20] 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Worker addu $4, -0x80000000 48*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 32768 # encoding: [0x00,0x80,0x01,0x3c] 49*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $1 # encoding: [0x21,0x20,0x81,0x00] 50*9880d681SAndroid Build Coastguard Worker addu $4, -0x8001 51*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 65535 # encoding: [0xff,0xff,0x01,0x3c] 52*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $1, 32767 # encoding: [0xff,0x7f,0x21,0x34] 53*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $1 # encoding: [0x21,0x20,0x81,0x00] 54*9880d681SAndroid Build Coastguard Worker addu $4, -0x8000 55*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $4, -32768 # encoding: [0x00,0x80,0x84,0x24] 56*9880d681SAndroid Build Coastguard Worker addu $4, 0 57*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $4, 0 # encoding: [0x00,0x00,0x84,0x24] 58*9880d681SAndroid Build Coastguard Worker addu $4, 0xFFFF 59*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $zero, 65535 # encoding: [0xff,0xff,0x01,0x34] 60*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $1 # encoding: [0x21,0x20,0x81,0x00] 61*9880d681SAndroid Build Coastguard Worker addu $4, 0x10000 62*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 1 # encoding: [0x01,0x00,0x01,0x3c] 63*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $1 # encoding: [0x21,0x20,0x81,0x00] 64*9880d681SAndroid Build Coastguard Worker addu $4, 0xFFFFFFFF 65*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $4, -1 # encoding: [0xff,0xff,0x84,0x24] 66*9880d681SAndroid Build Coastguard Worker 67*9880d681SAndroid Build Coastguard Worker addu $4, $5, -0x80000000 68*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 69*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $5 # encoding: [0x21,0x20,0x85,0x00] 70*9880d681SAndroid Build Coastguard Worker addu $4, $5, -0x8001 71*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 72*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 73*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $5 # encoding: [0x21,0x20,0x85,0x00] 74*9880d681SAndroid Build Coastguard Worker addu $4, $5, -0x8000 75*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $5, -32768 # encoding: [0x00,0x80,0xa4,0x24] 76*9880d681SAndroid Build Coastguard Worker addu $4, $5, 0 77*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x24] 78*9880d681SAndroid Build Coastguard Worker addu $4, $5, 0xFFFF 79*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $zero, 65535 # encoding: [0xff,0xff,0x04,0x34] 80*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $5 # encoding: [0x21,0x20,0x85,0x00] 81*9880d681SAndroid Build Coastguard Worker addu $4, $5, 0x10000 82*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 83*9880d681SAndroid Build Coastguard Worker# CHECK: addu $4, $4, $5 # encoding: [0x21,0x20,0x85,0x00] 84*9880d681SAndroid Build Coastguard Worker addu $4, $5, 0xFFFFFFFF 85*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $5, -1 # encoding: [0xff,0xff,0xa4,0x24] 86*9880d681SAndroid Build Coastguard Worker 87*9880d681SAndroid Build Coastguard Worker and $4, -0x80000000 88*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 32768 # encoding: [0x00,0x80,0x01,0x3c] 89*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $1 # encoding: [0x24,0x20,0x81,0x00] 90*9880d681SAndroid Build Coastguard Worker and $4, -0x8001 91*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 65535 # encoding: [0xff,0xff,0x01,0x3c] 92*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $1, 32767 # encoding: [0xff,0x7f,0x21,0x34] 93*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $1 # encoding: [0x24,0x20,0x81,0x00] 94*9880d681SAndroid Build Coastguard Worker and $4, -0x8000 95*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -32768 # encoding: [0x00,0x80,0x01,0x24] 96*9880d681SAndroid Build Coastguard Worker and $4, 0 97*9880d681SAndroid Build Coastguard Worker# CHECK: andi $4, $4, 0 # encoding: [0x00,0x00,0x84,0x30] 98*9880d681SAndroid Build Coastguard Worker and $4, 0xFFFF 99*9880d681SAndroid Build Coastguard Worker# CHECK: andi $4, $4, 65535 # encoding: [0xff,0xff,0x84,0x30] 100*9880d681SAndroid Build Coastguard Worker and $4, 0x10000 101*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 1 # encoding: [0x01,0x00,0x01,0x3c] 102*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $1 # encoding: [0x24,0x20,0x81,0x00] 103*9880d681SAndroid Build Coastguard Worker and $4, 0xFFFFFFFF 104*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -1 # encoding: [0xff,0xff,0x01,0x24] 105*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $1 # encoding: [0x24,0x20,0x81,0x00] 106*9880d681SAndroid Build Coastguard Worker 107*9880d681SAndroid Build Coastguard Worker and $4, $5, -0x80000000 108*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 109*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $5 # encoding: [0x24,0x20,0x85,0x00] 110*9880d681SAndroid Build Coastguard Worker and $4, $5, -0x8001 111*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 112*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 113*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $5 # encoding: [0x24,0x20,0x85,0x00] 114*9880d681SAndroid Build Coastguard Worker and $4, $5, -0x8000 115*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -32768 # encoding: [0x00,0x80,0x04,0x24] 116*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $5 # encoding: [0x24,0x20,0x85,0x00] 117*9880d681SAndroid Build Coastguard Worker and $4, $5, 0 118*9880d681SAndroid Build Coastguard Worker# CHECK: andi $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x30] 119*9880d681SAndroid Build Coastguard Worker and $4, $5, 0xFFFF 120*9880d681SAndroid Build Coastguard Worker# CHECK: andi $4, $5, 65535 # encoding: [0xff,0xff,0xa4,0x30] 121*9880d681SAndroid Build Coastguard Worker and $4, $5, 0x10000 122*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 123*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $5 # encoding: [0x24,0x20,0x85,0x00] 124*9880d681SAndroid Build Coastguard Worker and $4, $5, 0xFFFFFFFF 125*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -1 # encoding: [0xff,0xff,0x04,0x24] 126*9880d681SAndroid Build Coastguard Worker# CHECK: and $4, $4, $5 # encoding: [0x24,0x20,0x85,0x00] 127*9880d681SAndroid Build Coastguard Worker 128*9880d681SAndroid Build Coastguard Worker nor $4, $5, 0 129*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, 0 # encoding: [0x00,0x00,0x04,0x24] 130*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 131*9880d681SAndroid Build Coastguard Worker nor $4, $5, 1 132*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, 1 # encoding: [0x01,0x00,0x04,0x24] 133*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 134*9880d681SAndroid Build Coastguard Worker nor $4, $5, 0x8000 135*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $zero, 32768 # encoding: [0x00,0x80,0x04,0x34] 136*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 137*9880d681SAndroid Build Coastguard Worker nor $4, $5, -0x8000 138*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -32768 # encoding: [0x00,0x80,0x04,0x24] 139*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 140*9880d681SAndroid Build Coastguard Worker nor $4, $5, 0x10000 141*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 142*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 143*9880d681SAndroid Build Coastguard Worker nor $4, $5, 0x1a5a5 144*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 145*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 42405 # encoding: [0xa5,0xa5,0x84,0x34] 146*9880d681SAndroid Build Coastguard Worker# CHECK: nor $4, $4, $5 # encoding: [0x27,0x20,0x85,0x00] 147*9880d681SAndroid Build Coastguard Worker 148*9880d681SAndroid Build Coastguard Worker or $4, -0x80000000 149*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 32768 # encoding: [0x00,0x80,0x01,0x3c] 150*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $1 # encoding: [0x25,0x20,0x81,0x00] 151*9880d681SAndroid Build Coastguard Worker or $4, -0x8001 152*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 65535 # encoding: [0xff,0xff,0x01,0x3c] 153*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $1, 32767 # encoding: [0xff,0x7f,0x21,0x34] 154*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $1 # encoding: [0x25,0x20,0x81,0x00] 155*9880d681SAndroid Build Coastguard Worker or $4, -0x8000 156*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -32768 # encoding: [0x00,0x80,0x01,0x24] 157*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $1 # encoding: [0x25,0x20,0x81,0x00] 158*9880d681SAndroid Build Coastguard Worker or $4, 0 159*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 0 # encoding: [0x00,0x00,0x84,0x34] 160*9880d681SAndroid Build Coastguard Worker or $4, 0xFFFF 161*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 65535 # encoding: [0xff,0xff,0x84,0x34] 162*9880d681SAndroid Build Coastguard Worker or $4, 0x10000 163*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 1 # encoding: [0x01,0x00,0x01,0x3c] 164*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $1 # encoding: [0x25,0x20,0x81,0x00] 165*9880d681SAndroid Build Coastguard Worker or $4, 0xFFFFFFFF 166*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -1 # encoding: [0xff,0xff,0x01,0x24] 167*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $1 # encoding: [0x25,0x20,0x81,0x00] 168*9880d681SAndroid Build Coastguard Worker 169*9880d681SAndroid Build Coastguard Worker or $4, $5, -0x80000000 170*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 171*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $5 # encoding: [0x25,0x20,0x85,0x00] 172*9880d681SAndroid Build Coastguard Worker or $4, $5, -0x8001 173*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 174*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 175*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $5 # encoding: [0x25,0x20,0x85,0x00] 176*9880d681SAndroid Build Coastguard Worker or $4, $5, -0x8000 177*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -32768 # encoding: [0x00,0x80,0x04,0x24] 178*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $5 # encoding: [0x25,0x20,0x85,0x00] 179*9880d681SAndroid Build Coastguard Worker or $4, $5, 0 180*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x34] 181*9880d681SAndroid Build Coastguard Worker or $4, $5, 0xFFFF 182*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $5, 65535 # encoding: [0xff,0xff,0xa4,0x34] 183*9880d681SAndroid Build Coastguard Worker or $4, $5, 0x10000 184*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 185*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $5 # encoding: [0x25,0x20,0x85,0x00] 186*9880d681SAndroid Build Coastguard Worker or $4, $5, 0xFFFFFFFF 187*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -1 # encoding: [0xff,0xff,0x04,0x24] 188*9880d681SAndroid Build Coastguard Worker# CHECK: or $4, $4, $5 # encoding: [0x25,0x20,0x85,0x00] 189*9880d681SAndroid Build Coastguard Worker 190*9880d681SAndroid Build Coastguard Worker slt $4, $5, -0x80000000 191*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 192*9880d681SAndroid Build Coastguard Worker# CHECK: slt $4, $4, $5 # encoding: [0x2a,0x20,0x85,0x00] 193*9880d681SAndroid Build Coastguard Worker slt $4, $5, -0x8001 194*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 195*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 196*9880d681SAndroid Build Coastguard Worker# CHECK: slt $4, $4, $5 # encoding: [0x2a,0x20,0x85,0x00] 197*9880d681SAndroid Build Coastguard Worker slt $4, $5, -0x8000 198*9880d681SAndroid Build Coastguard Worker# CHECK: slti $4, $5, -32768 # encoding: [0x00,0x80,0xa4,0x28] 199*9880d681SAndroid Build Coastguard Worker slt $4, $5, 0 200*9880d681SAndroid Build Coastguard Worker# CHECK: slti $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x28] 201*9880d681SAndroid Build Coastguard Worker slt $4, $5, 0xFFFF 202*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $zero, 65535 # encoding: [0xff,0xff,0x04,0x34] 203*9880d681SAndroid Build Coastguard Worker slt $4, $5, 0x10000 204*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 205*9880d681SAndroid Build Coastguard Worker# CHECK: slt $4, $4, $5 # encoding: [0x2a,0x20,0x85,0x00] 206*9880d681SAndroid Build Coastguard Worker slt $4, $5, 0xFFFFFFFF 207*9880d681SAndroid Build Coastguard Worker# CHECK: slti $4, $5, -1 # encoding: [0xff,0xff,0xa4,0x28] 208*9880d681SAndroid Build Coastguard Worker 209*9880d681SAndroid Build Coastguard Worker sltu $4, $5, -0x80000000 210*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 211*9880d681SAndroid Build Coastguard Worker# CHECK: sltu $4, $4, $5 # encoding: [0x2b,0x20,0x85,0x00] 212*9880d681SAndroid Build Coastguard Worker sltu $4, $5, -0x8001 213*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 214*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 215*9880d681SAndroid Build Coastguard Worker# CHECK: sltu $4, $4, $5 # encoding: [0x2b,0x20,0x85,0x00] 216*9880d681SAndroid Build Coastguard Worker sltu $4, $5, -0x8000 217*9880d681SAndroid Build Coastguard Worker# CHECK: sltiu $4, $5, -32768 # encoding: [0x00,0x80,0xa4,0x2c] 218*9880d681SAndroid Build Coastguard Worker sltu $4, $5, 0 219*9880d681SAndroid Build Coastguard Worker# CHECK: sltiu $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x2c] 220*9880d681SAndroid Build Coastguard Worker sltu $4, $5, 0xFFFF 221*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $zero, 65535 # encoding: [0xff,0xff,0x04,0x34] 222*9880d681SAndroid Build Coastguard Worker sltu $4, $5, 0x10000 223*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 224*9880d681SAndroid Build Coastguard Worker# CHECK: sltu $4, $4, $5 # encoding: [0x2b,0x20,0x85,0x00] 225*9880d681SAndroid Build Coastguard Worker sltu $4, $5, 0xFFFFFFFF 226*9880d681SAndroid Build Coastguard Worker# CHECK: sltiu $4, $5, -1 # encoding: [0xff,0xff,0xa4,0x2c] 227*9880d681SAndroid Build Coastguard Worker 228*9880d681SAndroid Build Coastguard Worker xor $4, -0x80000000 229*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 32768 # encoding: [0x00,0x80,0x01,0x3c] 230*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $1 # encoding: [0x26,0x20,0x81,0x00] 231*9880d681SAndroid Build Coastguard Worker xor $4, -0x8001 232*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 65535 # encoding: [0xff,0xff,0x01,0x3c] 233*9880d681SAndroid Build Coastguard Worker# CHECK: ori $1, $1, 32767 # encoding: [0xff,0x7f,0x21,0x34] 234*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $1 # encoding: [0x26,0x20,0x81,0x00] 235*9880d681SAndroid Build Coastguard Worker xor $4, -0x8000 236*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -32768 # encoding: [0x00,0x80,0x01,0x24] 237*9880d681SAndroid Build Coastguard Worker xor $4, 0 238*9880d681SAndroid Build Coastguard Worker# CHECK: xori $4, $4, 0 # encoding: [0x00,0x00,0x84,0x38] 239*9880d681SAndroid Build Coastguard Worker xor $4, 0xFFFF 240*9880d681SAndroid Build Coastguard Worker# CHECK: xori $4, $4, 65535 # encoding: [0xff,0xff,0x84,0x38] 241*9880d681SAndroid Build Coastguard Worker xor $4, 0x10000 242*9880d681SAndroid Build Coastguard Worker# CHECK: lui $1, 1 # encoding: [0x01,0x00,0x01,0x3c] 243*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $1 # encoding: [0x26,0x20,0x81,0x00] 244*9880d681SAndroid Build Coastguard Worker xor $4, 0xFFFFFFFF 245*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $1, $zero, -1 # encoding: [0xff,0xff,0x01,0x24] 246*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $1 # encoding: [0x26,0x20,0x81,0x00] 247*9880d681SAndroid Build Coastguard Worker 248*9880d681SAndroid Build Coastguard Worker xor $4, $5, -0x80000000 249*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 32768 # encoding: [0x00,0x80,0x04,0x3c] 250*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $5 # encoding: [0x26,0x20,0x85,0x00] 251*9880d681SAndroid Build Coastguard Worker xor $4, $5, -0x8001 252*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 65535 # encoding: [0xff,0xff,0x04,0x3c] 253*9880d681SAndroid Build Coastguard Worker# CHECK: ori $4, $4, 32767 # encoding: [0xff,0x7f,0x84,0x34] 254*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $5 # encoding: [0x26,0x20,0x85,0x00] 255*9880d681SAndroid Build Coastguard Worker xor $4, $5, -0x8000 256*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -32768 # encoding: [0x00,0x80,0x04,0x24] 257*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $5 # encoding: [0x26,0x20,0x85,0x00] 258*9880d681SAndroid Build Coastguard Worker xor $4, $5, 0 259*9880d681SAndroid Build Coastguard Worker# CHECK: xori $4, $5, 0 # encoding: [0x00,0x00,0xa4,0x38] 260*9880d681SAndroid Build Coastguard Worker xor $4, $5, 0xFFFF 261*9880d681SAndroid Build Coastguard Worker# CHECK: xori $4, $5, 65535 # encoding: [0xff,0xff,0xa4,0x38] 262*9880d681SAndroid Build Coastguard Worker xor $4, $5, 0x10000 263*9880d681SAndroid Build Coastguard Worker# CHECK: lui $4, 1 # encoding: [0x01,0x00,0x04,0x3c] 264*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $5 # encoding: [0x26,0x20,0x85,0x00] 265*9880d681SAndroid Build Coastguard Worker xor $4, $5, 0xFFFFFFFF 266*9880d681SAndroid Build Coastguard Worker# CHECK: addiu $4, $zero, -1 # encoding: [0xff,0xff,0x04,0x24] 267*9880d681SAndroid Build Coastguard Worker# CHECK: xor $4, $4, $5 # encoding: [0x26,0x20,0x85,0x00] 268