<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">Dear Pratik,<br>
      <br>
      I'm not sure that your question is clear.  To my understanding,
      GEM is a Simics-based CPU emulator that runs standard x86
      binaries.  Therefore, I'd expect the output of an unmodified LLVM
      compiler for x86 to run on GEM.  The only reason why you'd get
      output from LLVM that doesn't work on the simulator is if LLVM is
      configured to generate code for x86 features that GEM doesn't
      support.<br>
      <br>
      Can you more thoroughly explain the problem that you're having?<br>
      <br>
      Regards,<br>
      <br>
      John Criswell<br>
      <br>
      On 6/30/14, 10:22 PM, pratik dand wrote:<br>
    </div>
    <blockquote
cite="mid:CAJFa+mQhLt7+dacAPs65BAdNaHxfPGNmHPqK-9dL+V+2V2DBNw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Dear,<br>
                  <br>
                </div>
                I have modified the LLVM X86 backend by adding some new
                instructions. I would like to compile my programs using
                llvm and run them on a CPU simulated by gem5.<br>
              </div>
              I have a few questions regarding this mostly related to
              the consistency of the machine code generated by llvm and
              accepted by gem5 (Opcode differences.). <br>
            </div>
             <br>
          </div>
          In  gem5, OR instructions are supported at opcodes different
          from llvm opcodes for OR. I am facing similar problems with my
          new instructions.<br>
        </div>
        I would like to run my executable generated by llvm on a gem5
        simulator.<br>
        <br clear="all">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>Any help would be appreciated.<br>
                        </div>
                        <div>-- <br>
                          Pratik
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>