[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / Mips / macro-sgt.s
blobe49a02daaf0b23f0392743dcecc3404672c6b112
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 sgt $4, $5
5 # CHECK: slt $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2a]
6 sgt $4, $5, $6
7 # CHECK: slt $4, $6, $5 # encoding: [0x00,0xc5,0x20,0x2a]
8 sgt $4, $5, 16
9 # CHECK: addiu $4, $zero, 16 # encoding: [0x24,0x04,0x00,0x10]
10 # CHECK: slt $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2a]
11 sgtu $4, $5
12 # CHECK: sltu $4, $5, $4 # encoding: [0x00,0xa4,0x20,0x2b]
13 sgtu $4, $5, $6
14 # CHECK: sltu $4, $6, $5 # encoding: [0x00,0xc5,0x20,0x2b]
15 sgtu $4, $5, 16
16 # CHECK: addiu $4, $zero, 16 # encoding: [0x24,0x04,0x00,0x10]
17 # CHECK: sltu $4, $4, $5 # encoding: [0x00,0x85,0x20,0x2b]
19 sgt $4, 16
20 # CHECK: addiu $1, $zero, 16 # encoding: [0x24,0x01,0x00,0x10]
21 # CHECK: slt $4, $1, $4 # encoding: [0x00,0x24,0x20,0x2a]
22 sgtu $4, 16
23 # CHECK: addiu $1, $zero, 16 # encoding: [0x24,0x01,0x00,0x10]
24 # CHECK: sltu $4, $1, $4 # encoding: [0x00,0x24,0x20,0x2b]