<br> For any instruction, a list of constraints can be specified, like:<br>let Constraints = "$dst = $lhs" in <br>...<br><br> I checked the existing backends and I didn't notice any complex constraints: basically "Constraints" keyword is used to force 1 operand register to be the same as another one.<br>
I am wondering if there is any way to express more complicated constraints like for example:<br>- if $lhs is either r0,r1,r2,r3 then $dst should also be in the set {r0,r1,r2,r3}<br>- if $lhs is either r4,r5,r6,r7 then $dst should also be in the set {r4, r5, r6, r7}<br>
...<br><br> Thank you !<br><br> Damien<br><br> <br>