brintos

brintos / llvm-project-archived public Read only

0
0
Text · 687 B · 1fc9a1e Raw
20 lines · plain
1# RUN: llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s -show-encoding | FileCheck %s2# RUN: not llvm-mc -triple thumbv7 -mcpu=cortex-m0 %s -show-encoding -mattr=+no-neg-immediates 2>&1 | FileCheck %s -check-prefix=CHECK-DISABLED3 4.thumb5 6	ADDs r1, r0, #0xFFFFFFF97# CHECK: subs r1, r0, #78# CHECK-DISABLED: note: instruction requires: NegativeImmediates9	ADDs r0, #0xFFFFFF0110# CHECK: subs r0, #25511# CHECK-DISABLED: note: instruction requires: NegativeImmediates12 13	SUBs r0, #0xFFFFFF0114# CHECK: adds r0, #25515# CHECK-DISABLED: note: instruction requires: NegativeImmediates16 17	SUBs r1, r0, #0xFFFFFFF918# CHECK: adds r1, r0, #719# CHECK-DISABLED: note: instruction requires: NegativeImmediates20