<div dir="ltr">Agreed, is there a pass that will insert a runtime alignment check? Also, what's the easiest way to get at TargetTransformInfo::getRegisterBitWidth() so I don't have to hard code 32? Thanks!<div>-Josh</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 3:20 PM, Frank Winter <span dir="ltr"><<a href="mailto:fwinter@jlab.org" target="_blank">fwinter@jlab.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hmm.. I don't quite understand. How can
      a module validator<br>
      catch this, when it's the pointers, i.e. the payload, you pass<br>
      as function arguments that need to be aligned.. ?!<span class="HOEnZb"><font color="#888888"><br>
      Frank</font></span><div><div class="h5"><br>
      <br>
      On 15/11/13 15:16, Renato Golin wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On 15 November 2013 20:05, Frank
            Winter <<a href="mailto:fwinter@jlab.org" target="_blank">fwinter@jlab.org</a>>
            wrote:<br>
            <blockquote class="gmail_quote">
              Good catch! That was the problem in my case too. I totally<br>
              overlooked the alignment requirement for AVX.</blockquote>
          </div>
          <br>
        </div>
        <div class="gmail_extra">I wonder if the validation mechanism
          shouldn't have caught it earlier... Do you guys run validate
          on the modules before JIT-ing?</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">--renato</div>
      </div>
    </blockquote>
    <br>
    <br>
  </div></div></div>

</blockquote></div><br></div>