<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all<div><br></div><div>In <font face="Helvetica Neue">r215084 I changed tablegen so that binary literals such as 0b01 are now bits<n> values and not integers.</font></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">What this means for users of tablegen is that this used to work because it was silently zero extended:</font></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">bits<3> x = 0b01;</font></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">but now you need to use the correct number of bits everywhere, i.e.,</font></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">bits<3> x = 0b001;</font></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">I’ve updated tablegen to give a useful error message in this case:</font></div><div><font face="Helvetica Neue"><br></font></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">error: Value 'x' of type 'bits<3>' is incompatible with initializer '{ 0, 1 }' of type bit initializer with length 2'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">  bits<3> x = 0b01;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">              ^</div></div><div><font face="Helvetica Neue"><br></font></div><div><font face="Helvetica Neue">Thanks,</font></div><div><font face="Helvetica Neue">Pete</font></div></body></html>