<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLVM+Clang emits movw instruction with -march=armv5te."
   href="http://llvm.org/bugs/show_bug.cgi?id=18364">18364</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM+Clang emits movw instruction with -march=armv5te.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>asg.msft@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11808" name="attach_11808" title="LLVM and .S code.">attachment 11808</a> <a href="attachment.cgi?id=11808&action=edit" title="LLVM and .S code.">[details]</a></span>
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 "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - LLVM+Clang emits movw instrucionts with -march=armv6zk"
   href="show_bug.cgi?id=13617">Bug 13617</a> - LLVM+Clang emits movw instrucionts with
-march=armv6zk". I'm not sure whether this is addressed\fixed in the main
trunk.

Thanks.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>