1 # RUN: llvm-mc -arch=mips -show-encoding -mcpu=mips1 < %s \
2 # RUN: | FileCheck --check-prefixes=ALL,MIPS32 %s
3 # RUN: llvm-mc -arch=mips -show-encoding -mcpu=mips64 < %s \
4 # RUN: | FileCheck --check-prefixes=ALL,MIPS64 %s
7 # ALL: xor $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x26]
8 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]
10 # ALL: sltu $4, $zero, $6 # encoding: [0x00,0x06,0x20,0x2b]
12 # ALL: sltu $4, $zero, $5 # encoding: [0x00,0x05,0x20,0x2b]
14 # ALL: sltu $4, $zero, $5 # encoding: [0x00,0x05,0x20,0x2b]
16 # ALL: addiu $4, $zero, 1 # encoding: [0x24,0x04,0x00,0x01]
18 # MIPS32: addiu $4, $5, 1 # encoding: [0x24,0xa4,0x00,0x01]
19 # MIPS64: daddiu $4, $5, 1 # encoding: [0x64,0xa4,0x00,0x01]
20 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]
22 # ALL: xori $4, $5, 1 # encoding: [0x38,0xa4,0x00,0x01]
23 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]
25 # ALL: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
26 # ALL: xor $4, $5, $1 # encoding: [0x00,0xa1,0x20,0x26]
27 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]