<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi Vivek,</p>
    <p>We don't have a fool-proof way to do this. I recommend that you
      look at the llvm-stress tool. Run through the regression tests in
      test/CodeGen/Generic. Also, if you can fully self host (including
      libc++, etc.) that's a good sign.</p>
    <p> -Hal<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 02/01/2017 10:58 AM, vivek pandya
      via llvm-dev wrote:<br>
    </div>
    <blockquote
cite="mid:CAHYgpo+eVw5_67XkA-zyKdqmRhRS4=Btvmqn61_pZ+59DSjmJQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr"><span style="font-size:13px">Hello LLVM Devs,</span>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">I have a question regarding porting
          a new target to LLVM backend.</div>
        <div style="font-size:13px">When we write a llvm backend for any
          new architecture then how can we verify that each type of
          instructions are being generated i.e particular pattern is not
          missing or not handled properly, every possible addressing
          modes are getting generated etc ?</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">One way is that generally
          architecture developer team should provide set of benchmarks
          that can cover complete set of instructions for one compiler
          other than LLVM  but have you ever heard about any tool to
          check so? Or what is the industry standard practice that you
          guys follow or know?</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">For a tool very natural idea is
          write a script which does string processing to find unique
          instructions generated over a given benchmark. But Will it be
          possible to write tool which is generic enough to take LLVM's
          target description files as input and then perform certain
          check over generated assembly ?</div>
        <div style="font-size:13px"><br>
        </div>
        <div style="font-size:13px">Sincerely,</div>
        <div style="font-size:13px">Vivek</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
  </body>
</html>