<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-17 3:19 GMT+08:00 Hiroshi 7 Inoue <span dir="ltr"><<a href="mailto:INOUEHRS@jp.ibm.com" target="_blank">INOUEHRS@jp.ibm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p><font size="2">For this specific case, modifying source code (or the frontend) to use a struct instead of </font><br><font size="2">bitfield seems to be an easy way since all sizes of bitfields are 8 bits. But you cannot?</font><br><font size="2">For general cases, you may want to enhance backend to emit bitextract/bitset.</font></p></div></blockquote><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The original test case was modified as it is, the bitfield are not always 8 bits.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">And sure, emitting bitextract/bitset will improve the code quality.</div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">chenwj</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div></div>