[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / Mips / macro-sge.s
blobd8189e55425d2cfef95eda24181d283deb6012a9
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
4 sge $4, $5
5 # CHECK: slt $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2a]
6 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
7 sge $4, $5, $6
8 # CHECK: slt $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x2a]
9 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
10 sge $4, 16
11 # CHECK: slti $4, $4, 16 # encoding: [0x28,0x84,0x00,0x10]
12 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
13 sge $4, $5, 16
14 # CHECK: slti $4, $5, 16 # encoding: [0x28,0xa4,0x00,0x10]
15 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
16 sge $4, $5, 0x10000
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]
20 sgeu $4, $5
21 # CHECK: sltu $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2b]
22 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
23 sgeu $4, $5, $6
24 # CHECK: sltu $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x2b]
25 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
26 sgeu $4, 16
27 # CHECK: sltiu $4, $4, 16 # encoding: [0x2c,0x84,0x00,0x10]
28 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
29 sgeu $4, $5, 16
30 # CHECK: sltiu $4, $5, 16 # encoding: [0x2c,0xa4,0x00,0x10]
31 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
32 sgeu $4, $5, 0x10000
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]
36 sge $4, 0x10000
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]
40 sgeu $4, 0x10000
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]