[llvm-bugs] [Bug 41507] New: [MSP430] inline assembly dropped
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 15 15:49:29 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41507
Bug ID: 41507
Summary: [MSP430] inline assembly dropped
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: MSP430
Assignee: unassignedbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: echristo at gmail.com, llvm-bugs at lists.llvm.org,
srhines at google.com
$ cat x.c
static int baz;
void foo() {
asm("mov.w $0, r1":: "i"(&baz));
}
$ msp430-gcc -O2 -c x.c
$ llvm-objdump -d -r x.o
x.o: file format ELF32-msp430
Disassembly of section .text:
0000000000000000 foo:
0: 11 40 00 00 mov 0, r1
00000002: R_MSP430_16_PCREL $0
4: 30 41 ret
$ clang -target msp430-linux-gnu -c x.c
$ llvm-objdump -d -r x.o
x.o: file format ELF32-msp430
Disassembly of section .text:
0000000000000000 foo:
0: 30 41 ret
Where did my inline asm go? (Note that adding -no-integrated-as to the clang
invocation produces a ton of assembler errors). Low priority, but something
seems broken with this backend.
--
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/20190415/5cf9dc6c/attachment.html>
More information about the llvm-bugs
mailing list