1 # RUN: llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s -show-encoding | FileCheck %s
2 # RUN: not llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s -show-encoding -mattr=+no-neg-immediates 2>&1 | FileCheck %s -check-prefix=CHECK-DISABLED
6 ADDs
r1, r0, #0xFFFFFFF9
7 # CHECK: subs r1, r0, #7
8 # CHECK-DISABLED: note: instruction requires: NegativeImmediates
10 # CHECK: subs r0, #255
11 # CHECK-DISABLED: note: instruction requires: NegativeImmediates
14 # CHECK: adds r0, #255
15 # CHECK-DISABLED: note: instruction requires: NegativeImmediates
17 SUBs
r1, r0, #0xFFFFFFF9
18 # CHECK: adds r1, r0, #7
19 # CHECK-DISABLED: note: instruction requires: NegativeImmediates