<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Apr 14, 2014, at 12:44 AM, Christian König <<a href="mailto:deathsimple@vodafone.de">deathsimple@vodafone.de</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">
      <blockquote type="cite">
        <pre wrap="">+  // The low 7 bits encoding value is the register index, for both VGPRs and
+  // SGPRs.
+  unsigned RegIdx = MRI.getEncodingValue(reg) & 0x7;</pre>
      </blockquote>
      That doesn't looks valid on first glance. For the low 7 bis you
      want a mask of 0x1F here, not 0x7.<br>
      <br>
      Christian.<br></div></div></blockquote><div><br></div><div>You’re right. It also should be 8 bits, since VGPRs go to 255</div><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><div class="moz-cite-prefix">
      <br>
      Am 14.04.2014 08:51, schrieb Matt Arsenault:<br>
    </div>
    <blockquote cite="mid:differential-rev-PHID-DREV-4plewjeezmrjtxvuagle-req@reviews.llvm.org" type="cite">
      <pre wrap="">Try to figure out the class and number of subregisters.

<a class="moz-txt-link-freetext" href="http://reviews.llvm.org/D3367">http://reviews.llvm.org/D3367</a>

Files:
  lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
  lib/Target/R600/InstPrinter/AMDGPUInstPrinter.h
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
llvm-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></blockquote></div><br></body></html>