[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / macro-sle.s
blob6d93ce5b820b2e4cd7df817c6a970cadd3825e56
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 sle $4, $5
5 # CHECK: slt $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2a]
6 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
7 sle $4, $5, $6
8 # CHECK: slt $4, $6, $5 # encoding: [0x00,0xc5,0x20,0x2a]
9 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
10 sle $4, $5, 16
11 # CHECK: addiu $4, $zero, 16 # encoding: [0x24,0x04,0x00,0x10]
12 # CHECK: slt $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2a]
13 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
14 sleu $4, $5
15 # CHECK: sltu $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2b]
16 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
17 sleu $4, $5, $6
18 # CHECK: sltu $4, $6, $5 # encoding: [0x00,0xc5,0x20,0x2b]
19 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
20 sleu $4, $5, 16
21 # CHECK: addiu $4, $zero, 16 # encoding: [0x24,0x04,0x00,0x10]
22 # CHECK: sltu $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2b]
23 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
24 sle $4, 16
25 # CHECK: addiu $1, $zero, 16 # encoding: [0x24,0x01,0x00,0x10]
26 # CHECK: slt $4, $1, $4 # encoding: [0x00,0x24,0x20,0x2a]
27 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]
28 sleu $4, 16
29 # CHECK: addiu $1, $zero, 16 # encoding: [0x24,0x01,0x00,0x10]
30 # CHECK: sltu $4, $1, $4 # encoding: [0x00,0x24,0x20,0x2b]
31 # CHECK: xori $4, $4, 1 # encoding: [0x38,0x84,0x00,0x01]