diff options
Diffstat (limited to 'test/MC/ARM/cmp-immediate-fixup.s')
-rw-r--r-- | test/MC/ARM/cmp-immediate-fixup.s | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/cmp-immediate-fixup.s b/test/MC/ARM/cmp-immediate-fixup.s new file mode 100644 index 0000000..e21d5c2 --- /dev/null +++ b/test/MC/ARM/cmp-immediate-fixup.s @@ -0,0 +1,9 @@ +@ PR18931 +@ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj -o - \ +@ RUN: | llvm-objdump --disassemble -arch=arm - | FileCheck %s + + .text +@ CHECK: cmp r2, #1 + cmp r2, #(l2 - l1 + 4) >> 2 +l1: +l2: |