LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 17720 - ARM assembler rejects LDRT/LDRHT/LDRBT with "error: instruction requires: thumb2"
Summary: ARM assembler rejects LDRT/LDRHT/LDRBT with "error: instruction requires: thu...
Status: RESOLVED FIXED
Alias: None
Product: new-bugs
Classification: Unclassified
Component: new bugs (show other bugs)
Version: trunk
Hardware: PC Linux
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks: 18926
  Show dependency tree
 
Reported: 2013-10-29 04:35 PDT by Niels Penneman
Modified: 2014-06-19 22:18 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Penneman 2013-10-29 04:35:01 PDT
The integrated ARM assembler in Clang rejects LDRT/LDRHT/LDRBT with "error: instruction requires: thumb2" when assembling for ARMv7-A.

Steps to reproduce for LDRT:

$ cat > test.s <<END
.syntax unified
.text
.arm
LDRT r0, [r1]
END
$ /opt/llvm/bin/clang -target armv7a-none-eabi -integrated-as test.s

Actual results:
'+soft-float-abi' is not a recognized feature for this target (ignoring feature)
test.s:4:1: error: instruction requires: thumb2
LDRT r0, [r1]
^

Expected results: assemble LDRT instruction without error, since it has been a valid ARM instruction since ARMv4, long before Thumb2 first appeared.

Version and platform:
$ /opt/llvm/bin/clang --version
clang version 3.4 (trunk 193589)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Comment 1 Saleem Abdulrasool 2014-06-19 22:18:31 PDT
This seems to be fixed.  I *think* that this should be fixed by the changes that I did to handle the GNU extensions (SVN r198914).  The provided test case passes with current ToT.  Marking the bug as fixed.