[LLVMbugs] [Bug 18364] New: LLVM+Clang emits movw instruction with -march=armv5te.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 2 23:23:30 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18364

            Bug ID: 18364
           Summary: LLVM+Clang emits movw instruction with -march=armv5te.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: asg.msft at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11808
  --> http://llvm.org/bugs/attachment.cgi?id=11808&action=edit
LLVM and .S code.

MOVW emitted for -march=armv5te.

foo.cpp:
unsigned long long f()
{
    unsigned long long y = 1;
    unsigned long long z = 0xa881fc44700;
    return y - z; // this line causes the llvm to emit MOVW. (-(z - y))
doesn't.
}

LLVM and .S code attached.

PS: I checked the bug "Bug 13617 - LLVM+Clang emits movw instrucionts with
-march=armv6zk". I'm not sure whether this is addressed\fixed in the main
trunk.

Thanks.

-- 
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/20140103/708f97af/attachment.html>


More information about the llvm-bugs mailing list