[llvm-bugs] [Bug 14094] immediate in DecodeThumbAddSPImm has to left shift 2 bits

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 18 08:48:50 PST 2016


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

Renato Golin <renato.golin at linaro.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |renato.golin at linaro.org
         Resolution|---                         |FIXED

--- Comment #2 from Renato Golin <renato.golin at linaro.org> ---
LLVM gets this right:

$ echo "sub sp, sp, #4" | llvm-mc -triple thumbv4t -filetype=obj -o sub.o

Using a different toolchain to make sure:

$ arm-none-eabi-objdump -d sub.o
00000000 <.text>:
   0:    b081          sub    sp, #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/20160118/ece30f8c/attachment.html>


More information about the llvm-bugs mailing list