1 # RUN: llvm-mc -arch=mips -show-encoding -mcpu=mips1 < %s | FileCheck %s
2 # RUN: llvm-mc -arch=mips -show-encoding -mcpu=mips64 < %s | FileCheck %s
5 # CHECK: slt $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2a]
6 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
8 # CHECK: slt $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x2a]
9 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
11 # CHECK: slti $4, $4, 16 # encoding: [0x28,0x84,0x00,0x10]
12 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
14 # CHECK: slti $4, $5, 16 # encoding: [0x28,0xa4,0x00,0x10]
15 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
17 # CHECK: lui $4, 1 # encoding: [0x3c,0x04,0x00,0x01]
18 # CHECK: slt $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2a]
19 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
21 # CHECK: sltu $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2b]
22 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
24 # CHECK: sltu $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x2b]
25 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
27 # CHECK: sltiu $4, $4, 16 # encoding: [0x2c,0x84,0x00,0x10]
28 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
30 # CHECK: sltiu $4, $5, 16 # encoding: [0x2c,0xa4,0x00,0x10]
31 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
33 # CHECK: lui $4, 1 # encoding: [0x3c,0x04,0x00,0x01]
34 # CHECK: sltu $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2b]
35 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
37 # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
38 # CHECK: slt $4, $4, $1 # encoding: [0x00,0x81,0x20,0x2a]
39 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
41 # CHECK: lui $1, 1 # encoding: [0x3c,0x01,0x00,0x01]
42 # CHECK: sltu $4, $4, $1 # encoding: [0x00,0x81,0x20,0x2b]
43 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]