[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Mips / macro-sne.s
blob497e1d604c41af105bc20e3accf5ddb3c2260b5f
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
6 sne $4, $5, $6
7 # ALL: xor $4, $5, $6 # encoding: [0x00,0xa6,0x20,0x26]
8 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]
9 sne $4, $zero, $6
10 # ALL: sltu $4, $zero, $6 # encoding: [0x00,0x06,0x20,0x2b]
11 sne $4, $5, $zero
12 # ALL: sltu $4, $zero, $5 # encoding: [0x00,0x05,0x20,0x2b]
13 sne $4, $5, 0
14 # ALL: sltu $4, $zero, $5 # encoding: [0x00,0x05,0x20,0x2b]
15 sne $4, $zero, 1
16 # ALL: addiu $4, $zero, 1 # encoding: [0x24,0x04,0x00,0x01]
17 sne $4, $5, -1
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]
21 sne $4, $5, 1
22 # ALL: xori $4, $5, 1 # encoding: [0x38,0xa4,0x00,0x01]
23 # ALL: sltu $4, $zero, $4 # encoding: [0x00,0x04,0x20,0x2b]
24 sne $4, $5, 0x10000
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]