https://bugs.llvm.org/show_bug.cgi?id=44858

            Bug ID: 44858
           Summary: Load register with negative immediate leads to
                    'invalid instruction'
           Product: libraries
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedb...@nondot.org
          Reporter: ste...@agner.ch
                CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org,
                    ties.st...@arm.com

Created attachment 23111
  --> https://bugs.llvm.org/attachment.cgi?id=23111&action=edit
reproducer assembly

Trying to use Encoding T4 of LDR (immediate, Thumb) which allows a negative
immediate leads to `invalid instruction`:

$ llvm-mc -triple=armv7-linux-gnueabi repr-wrong-selection.s
        .text
        .code   16
        .globl  _start
_start:
repr-wrong-selection.s:6:2: error: invalid instruction
        ldr.w r3, [r1, #-4]!
        ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to