• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3
4sgt   $4, $5
5# CHECK: slt $4, $5, $4         # encoding: [0x00,0xa4,0x20,0x2a]
6sgt   $4, $5, $6
7# CHECK: slt $4, $6, $5         # encoding: [0x00,0xc5,0x20,0x2a]
8sgt   $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]
11sgtu  $4, $5
12# CHECK: sltu $4, $5, $4        # encoding: [0x00,0xa4,0x20,0x2b]
13sgtu  $4, $5, $6
14# CHECK: sltu $4, $6, $5        # encoding: [0x00,0xc5,0x20,0x2b]
15sgtu  $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]
18
19sgt   $4, 16
20# CHECK: addiu $1, $zero, 16    # encoding: [0x24,0x01,0x00,0x10]
21# CHECK: slt   $4, $1, $4       # encoding: [0x00,0x24,0x20,0x2a]
22sgtu  $4, 16
23# CHECK: addiu $1, $zero, 16    # encoding: [0x24,0x01,0x00,0x10]
24# CHECK: sltu  $4, $1, $4       # encoding: [0x00,0x24,0x20,0x2b]
25