<div dir="ltr">What is the difference between<br><br><span class="gmail_default" style="font-size:small">    </span>Uses = [EFLAGS] <span class="gmail_default" style="font-size:small">+</span> Defs = [EFLAGS]<br><br>and their mention in selection patterns?<br><br><span class="gmail_default" style="font-size:small">    </span>[(set GR64:$dst, EFLAGS, (X86smul_flag GR64:$src1, GR64:$src2))]<br><br>Basically, my problem is that I have weird instructions which undef the EFLAGS register, leaving EFLAGS in an unknown state. For example:<br><br>    cmp x, y<br>    beq z           ; <span class="gmail_default" style="font-size:small">this is </span>good<span class="gmail_default" style="font-size:small"> because EFLAGS is defined</span><br><br>    cmp x, y<br>    weird_inst.   ; undef<span class="gmail_default" style="font-size:small"></span>s EFLAGS<span class="gmail_default" style="font-size:small">, leaves EFLAGS in a undefined state</span><br>    beq z           ; <span class="gmail_default" style="font-size:small">this is </span>bad<span class="gmail_default" style="font-size:small"> because</span> EFLAGS is undefined<br><br>Is it enough to just say Defs = [EFLAGS] for the Instruction def of weird_inst?<span class="gmail_default" style="font-size:small"> </span>Or is it necessary for the <span class="gmail_default" style="font-size:small">pattern</span> to  say something like [(set EFLAGS, undef)]<span class="gmail_default" style="font-size:small"> as well</span>?</div>