<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 12:31 AM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">> Yeah, exactly those 2 things.  I have them in separate patches, but I think<br>

> we only get the benefit from sized binary literals if we also allow them to<br>
> initialize multiple bits in another bits<n> type.<br>
<br>
</div>It also allows type checking for single initializers. I've been caught<br>
out a couple of times when I thought I'd given 17 digits in "let<br>
Inst{16-0} = 0b1001000111011010" or similar.<br></blockquote><div><br></div><div>Allowing underscores in the literal seems like it would help alleviate this somewhat (do we already allow that?). That is what VHDL does ("Underlines can be used to increase readability and have no impact on the value."). </div>
<div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Cheers.<br>
<span class=""><font color="#888888"><br>
Tim.<br>
</font></span><div class=""><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>