<html>
    <head>
      <base href="https://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 --- - Regression on ARM"
   href="https://llvm.org/bugs/show_bug.cgi?id=29201">29201</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression on ARM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvmbugzilla@limegreensocks.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17070" name="attach_17070" title="Ugly but small C sample for "out of range" regression">attachment 17070</a> <a href="attachment.cgi?id=17070&action=edit" title="Ugly but small C sample for "out of range" regression">[details]</a></span>
Ugly but small C sample for "out of range" regression

This checkin:

  Revision: 6e45500a57ff3b4a49ef72dbdd85c0d4003375df
  Author: Prakhar Bahuguna <<a href="mailto:prakhar.bahuguna@arm.com">prakhar.bahuguna@arm.com</a>>
  Date: 8/16/2016 3:41:52 AM
  Message:
  [Thumb] Validate branch target for CBZ/CBNZ instructions.

has apparently caused a regression.  After applying (just) this change, this
compile command:

  /llvm.trunkb/bin/clang.exe -target armv7-windows-gnu -c -o dmisc2.o dmisc2.c

gives this message:

  fatal error: error in backend: out of range pc-relative fixup value

Attached is an (ugly but small) example that is giving me the error.  If I
compile this C code to assembly (-S) then compile the assembly, I see:

dmisc2.s:40:2: error: out of range pc-relative fixup value
        cbz     r0, .LBB0_7</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>