<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(270823:273743): error in backend: Cannot select: t45: i32 = ARMISD::BFI t4, Constant:i32<1>, t34"
   href="https://llvm.org/bugs/show_bug.cgi?id=28348">28348</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression(270823:273743): error in backend: Cannot select: t45: i32 = ARMISD::BFI t4, Constant:i32<1>, t34
          </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>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>nicolasweber@gmx.de
          </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>thakis@thakis:/tmp$ cat repro.cc
struct A { A(char*); };

struct D : A {
  D(char* p1) : A(p1) {}
};

class C {
  void m_fn1(int a);
  char *ValidateFrame_data_ptr;
};
void C::m_fn1(int a) {
  D(new char[a & ~4095]);
  ValidateFrame_data_ptr += 4096 + (a & 4095);
}
thakis@thakis:/tmp$ $HOME/src/llvm-build/bin/clang-3.8 -cc1 -triple
thumbv7--linux-android -emit-obj -Os repro.cc
fatal error: error in backend: Cannot select: t45: i32 = ARMISD::BFI t4,
Constant:i32<1>, t34
  t4: i32,ch = CopyFromReg t0, Register:i32 %vreg1
    t3: i32 = Register %vreg1
  t44: i32 = Constant<1>
  t34: i32 = t2MOVi16 TargetConstant:i32<4095>, TargetConstant:i32<14>,
Register:i32 %noreg
    t56: i32 = TargetConstant<4095>
    t51: i32 = TargetConstant<14>
    t52: i32 = Register %noreg
In function: _ZN1C5m_fn1Ei</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>