[llvm-bugs] [Bug 31058] New: Integrated assembler rejects ldrexd/strexd in thumb mode
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 18 08:54:50 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31058
Bug ID: 31058
Summary: Integrated assembler rejects ldrexd/strexd in thumb
mode
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: sbc at chromium.org
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
These instructions are apparently valid in thumb2 mode but clang's integrated
asm rejects them:
void func() {
int volatile *ptr;
int ret;
__asm__ __volatile__("ldrexd %0,[%1]\n"
: "=&r" (ret)
: "r" (ptr)
: "cc", "memory"
);
}
$ clang --target=arm-linux-gnueabihf -march=armv7-a -o test.o -c test.c
-mthumb
test.c:4:24: error: instruction requires: arm-mode
__asm__ __volatile__("ldrexd %0,[%1]\n"
^
<inline asm>:1:2: note: instantiated into assembly here
ldrexd r1,[r0]
^
1 error generated.
With -no-integrated-as the same code compiles fine:
See https://bugs.chromium.org/p/chromium/issues/detail?id=564059
--
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/20161118/2632b30b/attachment.html>
More information about the llvm-bugs
mailing list