surely you would have to use<div> movaps XMM0, v.v;</div><div><br></div><div> because the alignment would only happen inside the struct?<div><br><br><div class="gmail_quote">On Sat, Sep 17, 2011 at 8:11 PM, Adam D. Ruppe <span dir="ltr"><<a href="mailto:destructionator@gmail.com">destructionator@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Perhaps:<br>
<br>
void foo() {<br>
        struct V { align(16) float[4] v = [1.0f, 2.0f, 3.0f, 4.0f]; }<br>
        V v;<br>
        asm {<br>
                movaps XMM0, v;<br>
        }<br>
}<br>
<br>
<br>
It compiles, but I'm not sure if it's actually correct.<br>
</blockquote></div><br></div></div>