1 # RUN: llvm-mc -arch=mips -mcpu=mips32r2 %s -show-inst | FileCheck %s
3 # Test that subu accepts constant operands and inverts them when
4 # rendering the operand.
6 subu $
4, $
4, 4 # CHECK: ADDiu
8 subu $gp
, $gp
, 4 # CHECK: ADDiu
10 subu $sp
, $sp
, 4 # CHECK: ADDiu
12 subu $
4, $
4, -4 # CHECK: ADDiu
14 subu $gp
, $gp
, -4 # CHECK: ADDiu
16 subu $sp
, $sp
, -4 # CHECK: ADDiu
18 subu $sp
, $sp
, -(4 + 4) # CHECK: ADDiu
21 subu $
4, 8 # CHECK: ADDiu
23 subu $gp
, 8 # CHECK: ADDiu
25 subu $sp
, 8 # CHECK: ADDiu
27 subu $
4, -8 # CHECK: ADDiu
29 subu $gp
, -8 # CHECK: ADDiu
31 subu $sp
, -8 # CHECK: ADDiu
33 subu $sp
, -(4 + 4) # CHECK: ADDiu