yea, I think it would go<div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div><font color="#3333FF"><font face="'courier new', monospace">invoke </font></font><font face="'courier new', monospace">@method(</font><font color="#993399"><font face="'courier new', monospace">i32 </font></font><font face="'courier new', monospace">%arg)</font></div>
<div><font face="'courier new', monospace"></font><font color="#3333FF"><font face="'courier new', monospace"><font color="#000000">  </font>ret<font color="#000000"> </font></font></font><font color="#3333FF"><font face="'courier new', monospace">to </font></font><font color="#993399"><font face="'courier new', monospace">label </font></font><font face="'courier new', monospace">%success_branch</font></div>
<div><font color="#3333FF"><font face="'courier new', monospace"><font color="#000000"><span style="white-space: pre-wrap; ">  </span></font>unwind <font color="#993399">i8</font><font color="#000000">*</font> </font></font><font face="'courier new', monospace">%exception_pointer </font><font color="#3333FF"><font face="'courier new', monospace">to </font></font><font color="#993399"><font face="'courier new', monospace">label </font></font><font face="'courier new', monospace">%error_branch</font></div>
<div><font face="'courier new', monospace"><br></font></div></span><div><br><div class="gmail_quote">On Mon, Sep 27, 2010 at 1:21 AM, Renato Golin <span dir="ltr"><<a href="mailto:rengolin@systemcall.org">rengolin@systemcall.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 27 September 2010 01:12, Nathan Jeffords <<a href="mailto:blunted2night@gmail.com">blunted2night@gmail.com</a>> wrote:<br>

> How about this syntax:<br>
> invoke @method(i32 %arg)<br>
>   ret i32 %return_value to label %success_branch<br>
> unwind i8* %exception_pointer to label %error_branch<br>
> this makes the instruction self consistent, and self documenting<br>
<br>
</div></div>I like it.<br>
<br>
What if the function returns void? Would you omit the whole type+value?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">cheers,<br>
--renato<br>
<br>
<a href="http://systemcall.org/" target="_blank">http://systemcall.org/</a><br>
<br>
Reclaim your digital rights, eliminate DRM, learn more at<br>
<a href="http://www.defectivebydesign.org/what_is_drm" target="_blank">http://www.defectivebydesign.org/what_is_drm</a><br>
</div></div></blockquote></div><br></div></div>