<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 3, 2017 at 6:19 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2017-08-03 8:58 GMT-07:00 Johan Engelen via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>:<br>
> The error is gone after removing (or reducing) the alignment of `%a`. This<br>
> makes me believe that our inline asm syntax is correct to add an offset to a<br>
> pointer: " 4+$0 ".<br>
<br>
</span>The AT&T syntax for a displaced address doesn't have the '+'; it's<br>
just "4(%rsp)" so you should change the IR to "4$0".<br></blockquote><div><br></div><div>I thought I had tested exactly that and observed wrong behaviour. But now I see it works well... confused.</div><div>Thanks!</div><div>  Johan <br></div></div><br></div></div>