<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 --- - PPC: LLVM ERROR: Cannot select: ... = PPCISD::ADD_TLS"
   href="http://llvm.org/bugs/show_bug.cgi?id=16555">16555</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PPC: LLVM ERROR: Cannot select: ... = PPCISD::ADD_TLS
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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: PowerPC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kai@redstar.de
          </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=10821" name="attach_10821" title="IR file demonstrating the problem.">attachment 10821</a> <a href="attachment.cgi?id=10821&action=edit" title="IR file demonstrating the problem.">[details]</a></span>
IR file demonstrating the problem.

Compiling the attached tlsbug.ll file on Linux/PPC results in the error
message:

LLVM ERROR: Cannot select: 0x105a0ee8: i32 = PPCISD::ADD_TLS 0x105a0e58,
0x105a0ca8 [ORD=1] [ID=7]
  0x105a0e58: i32 = PPCISD::LD_GOT_TPREL_L 0x105a0af8, 0x105a0dc8 [ORD=1]
[ID=6]
    0x105a0af8: i32 = TargetGlobalTLSAddress<%rt.lifetime.BlkInfo.0.84**
@_D2rt8lifetime18__blkcache_storagePS2rt8lifetime7BlkInfo> 0 [ORD=1] [ID=2]
    0x105a0dc8: i32 = PPCISD::ADDIS_GOT_TPREL_HA 0x105a0d38, 0x105a0af8 [ORD=1]
[ID=5]
      0x105a0d38: i64 = Register %X2 [ID=4]
      0x105a0af8: i32 = TargetGlobalTLSAddress<%rt.lifetime.BlkInfo.0.84**
@_D2rt8lifetime18__blkcache_storagePS2rt8lifetime7BlkInfo> 0 [ORD=1] [ID=2]
  0x105a0ca8: i32 = TargetGlobalTLSAddress<%rt.lifetime.BlkInfo.0.84**
@_D2rt8lifetime18__blkcache_storagePS2rt8lifetime7BlkInfo> 0 [TF=128] [ORD=1]
[ID=3]
In function: _D2rt5tlsgc4initFZPS2rt5tlsgc4Data

This is a reduced test case produced by the LDC D compiler.</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>