<p dir="ltr">Possibly. Opening a bug is definitely worth, though, at least to investigate. </p>
<p dir="ltr">Cheers, <br>
Renato </p>
<div class="gmail_quote">On 30 Sep 2014 22:48, "Matthew Fernandez" <<a href="mailto:matthew.fernandez@gmail.com">matthew.fernandez@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Renato. So this is definitely a bug? If so, I'll open a new one at <a href="http://llvm.org/bugs/" target="_blank">http://llvm.org/bugs/</a>. Just wanted to make sure it wasn't intended behaviour.<br>
<br>
On 01/10/14 06:51, Renato Golin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 30 September 2014 02:57, Matthew Fernandez<br>
<<a href="mailto:matthew.fernandez@gmail.com" target="_blank">matthew.fernandez@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This seems to be independent of the target platform; at least I get similar<br>
results for ARM and x86. What is the intended behaviour here?<br>
</blockquote>
<br>
Current tip does:<br>
<br>
void foo() {<br>
     register int x asm("eax");<br>
}<br>
<br>
AND<br>
<br>
void foo() {<br>
     register int x = 1 asm("eax");<br>
}<br>
<br>
The first looks correct, but the second looks weird. I don't know<br>
what's the expected behaviour, or if this output can be regarded as<br>
valid code (I'm guessing not), so in theory, it doesn't matter much.<br>
But it does seem an easy fix for this particular case, I think.<br>
<br>
cheers,<br>
--renato<br>
<br>
</blockquote>
</blockquote></div>