<div dir="ltr"><div><div><div>I attach a patch that fixes this bug. Applies to llvm 3.4svn<br><br></div>Please commit it please.<br><br></div>Kind Regards<br><br></div>James<br><br><div><div><br></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 13 September 2013 17:46, James Courtier-Dutton <span dir="ltr"><<a href="mailto:james.dutton@gmail.com" target="_blank">james.dutton@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi,<br><br></div>I am looking at the "LLVMOpInfoCallback GetOpInfo" callback.<br><div><br>Example 1 GOOD:<br>41 c6 84 24 16 04 00 00 0c : movb $12, 1046(%r12)<br><br>Makes calls to the callback with:<br>
Offset = 0x4, Size = 0x4 <- Octets: 16 04 00 00 <br>Offset = 0x8, Size = 0x1 <- Octets: 0c<br></div><div>That was correct.<br><br>Example 2 BAD:<br>c7 45 98 a1 ff ff ff : movl $4294967201, -104(%rbp)<br>Makes calls to the callback with:<br>
Offset = 0x2, Size = 0x4 <- Octets: 98 a1 ff ff<br>Offset = 0x3, Size = 0x4 <- Octets: a1 ff ff ff<br></div><div>That is wrong.<br></div><div>The callbacks should be:<br>Offset = 0x2, Size = 0x1 <- Octets: 98<br>
Offset = 0x3, Size = 0x4 <- Octets: a1 ff ff ff<br><br></div>
<div>Is this a know bug?<br><br></div><div>Kind Regards<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>James<br><br></div></font></span></div>
</blockquote></div><br></div>