<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Error in type legalising on v6m"
   href="https://bugs.llvm.org/show_bug.cgi?id=36559">36559</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Error in type legalising on v6m
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>david.green@arm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>deadalnix@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This code:

char a[] = {1, 1, 1};
char b = 1;
int c;
static int d;
e() {
  char *f = &a[2];
  char *g = &b;
  char **h = c;
  if (g != (*h = f))
    d = 70;
}
i() { fn3(d); }


Compiled like this:
clang --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c test.c -O3 -c


Gives me this:
Operand not processed?
t21: ch = br t23, BasicBlock:ch<if.then 0x82b168>

UNREACHABLE executed at ../lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:476!


Bisecting led to this commit:
<a href="https://reviews.llvm.org/rL325892">https://reviews.llvm.org/rL325892</a></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>