From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg McGary To: cgen@sourceware.cygnus.com Subject: defining 2-operand version of 3-operand insns? Date: Fri, 01 Dec 2000 14:17:00 -0000 Message-id: <200012012217.PAA04718@kayak.mcgary.org> X-SW-Source: 2000-q4/msg00168.html I want to define 2-operand versions of 3-operand ALU insns, like so: add $s1, $s2 ; 2-operand which aliases: add $s1, $s1, $s2 I can't find a way to copy $dest into $src1. dni didn't like this encoding: (+ OP_ADDr dest (f-src1 dest) src2) I tried dnmi, and it accepted this: (emit addr dest (f-src1 dest) src2) and this: (emit addr dest (src1 dest) src2), but not this: (emit addr dest dest src2), but for the accepted cases, the src1 field assembled as 0, not as a copy of dest. Clues? Greg