[llvm-bugs] [Bug 39993] New: LLVM generates wrong MSP430 code for indirect input constraints
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 13 05:18:15 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39993
Bug ID: 39993
Summary: LLVM generates wrong MSP430 code for indirect input
constraints
Product: new-bugs
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hans.winderix at cs.kuleuven.be
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Since r346948, LLVM generates wrong MSP430 code for indirect input
constraints inline assembly.
For example, for the following IR snippet
target triple = "msp430-unknown-unknown-elf"
define void @f() {
entry:
call void asm sideeffect "mov r1, $0", "*m"(i8* inttoptr (i16 256 to i8*))
ret void
}
the inline assembly is wrongly translated into
mov r1, 256(r2)
instead of into
mov r1, &256
--
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/20181213/225f81cd/attachment.html>
More information about the llvm-bugs
mailing list