<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Artur,<br></blockquote><div><br>Hi Daniel <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="h5">
> Hi all,<br>
> so after "greping" the code I was able to do (more or less) everything I<br>
> wanted to do.<br>
<br>
</div></div>As you have discovered, this stuff isn't very well documented yet. Do<br>
you feel like writing up a blurb we could add to our Internals Manual<br>
describing what you have discovered?<br></blockquote></div><br>I'll try when I'll make it work correct ;)<br><br>BTW I've noticed strange behaviour. When I switched from llvm-gcc to clang, my benchmarks stopped working. When I compile simple code:<br>
<br>char array[] = "+0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";<br><br>int main() {<br>  return array[31];<br>}<br><br>like this:<br>clang -ccc-host-triple mycpu -O0 -S hello.c -o hello.s<br>
<br>The code is wrong, to be precise in one instruction I get<br>lbs $r16 = 0[$r17] instead of lbs $r16 = 31[$r17]<br><br>but the code is correct when I do it like this:<br>clang -ccc-host-triple mycpu -O0 hello.c -c -emit-llvm -o hello.bc<br>
llc -march=mycpu hello.bc -o hello.s<br><br><br>Am I missing something? Shouldn't these two be equivalent? <br>Thanks in advance.<br><br>Artur<br>