<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/15/2013 09:13 PM, Craig Topper
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAF7ks-MZUb_eDkQY9VQtxHw007jXBZebLume6soFw-XSY91sTA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Are you looking for something other than calling
        __builtin_clz from c++ or calling @llvm.ctlz.* instrinsic from
        IR?
        <div><br>
        </div>
      </div>
    </blockquote>
    That's good enough. Thanks.<br>
    <br>
    On Mips16 I don't have an instruction for that so I think I need to
    ask that it be expanded,<br>
    so I will try that tomorrow but I will need a small test case to put
    it back.<br>
    <br>
    <br>
    <blockquote
cite="mid:CAF7ks-MZUb_eDkQY9VQtxHw007jXBZebLume6soFw-XSY91sTA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I don't think we have anything that will auto converting a
          loop to ctlz or anything like that. We only seem to have a
          detection for popcount loops.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Thu, Aug 15, 2013 at 9:01 PM, reed
          kotler <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Does
            anyone know some simple c/c++ code or .ll code which will
            cause this ctlz pattern to be emitted?<br>
            <br>
            Tia.<br>
            <br>
            Reed<br>
            <br>
            <br>
            _______________________________________________<br>
            LLVM Developers mailing list<br>
            <a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu"
              target="_blank">LLVMdev@cs.uiuc.edu</a>         <a
              moz-do-not-send="true" href="http://llvm.cs.uiuc.edu"
              target="_blank">http://llvm.cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        ~Craig
      </div>
    </blockquote>
    <br>
  </body>
</html>