<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:hfinkel@anl.gov" title="Hal Finkel <hfinkel@anl.gov>"> <span class="fn">Hal Finkel</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [powerpc-darwin][AsmPrinter] addis instruction expects 0 instead of r0"
   href="http://llvm.org/bugs/show_bug.cgi?id=18316">bug 18316</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [powerpc-darwin][AsmPrinter] addis instruction expects 0 instead of r0"
   href="http://llvm.org/bugs/show_bug.cgi?id=18316#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [powerpc-darwin][AsmPrinter] addis instruction expects 0 instead of r0"
   href="http://llvm.org/bugs/show_bug.cgi?id=18316">bug 18316</a>
              from <span class="vcard"><a class="email" href="mailto:hfinkel@anl.gov" title="Hal Finkel <hfinkel@anl.gov>"> <span class="fn">Hal Finkel</span></a>
</span></b>
        <pre>The ADDIS is coming from the regular add pattern:

ISEL: Starting pattern match on root node: 0x70b7480: i32 = add 0x70b4430,
0x70b2c70 [ORD=29] [ID=66]
...
  Morphed node: 0x70b7480: i32 = ADDIS 0x70b4430, 0x70b2170 [ORD=29]

which was:

              0x70b4430: i32 = PPCISD::GlobalBaseReg [ORD=29]

              0x70b2c70: i32 = PPCISD::Hi 0x70b2170, 0x70b4030 [ORD=29]

            0x70b7480: i32 = add 0x70b4430, 0x70b2c70 [ORD=29]

If we make sure to allocate the global base register from the non-r0 register
class, then this problem goes away ;) -- r203054.</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>