[llvm-bugs] [Bug 44858] New: Load register with negative immediate leads to 'invalid instruction'
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Feb 9 11:12:52 PST 2020
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: unassignedbugs at nondot.org
Reporter: stefan at agner.ch
CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
Ties.Stuij at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200209/c7e98fd0/attachment.html>
More information about the llvm-bugs
mailing list