<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><FONT class="Apple-style-span" face="Courier">I've got an instruction that has the following pattern (R32C is the 32-bit register class):</FONT><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">(set R32C:$rT, (or (and R32C:$rA, R32C:$rC),</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">                   (and R32C:$rB, (not R32C:$rC))))</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">tblgen generates the following variants (I've dropped the R32C for brevity):</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">(or (and $rA, $rC), (and $rB, (not $rC)))  # original</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">(or (and $rA, $rC), (and (not $rC), $rB))</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">(or (and $rB, (not $rC)), (and $rA, $rC))</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">(or (and (not $rC), $rB), (and $rA, $rC))</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">I would have expected four additional patterns, each with the (and $rC, $rA) variant in it. But I only get the above four.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Is this a bug or a feature? :-)</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">-scooter</FONT></DIV></BODY></HTML>