entered into RCS
authorRichard Stallman <rms@gnu.org>
Wed, 20 May 1992 21:01:40 +0000 (21:01 +0000)
committerRichard Stallman <rms@gnu.org>
Wed, 20 May 1992 21:01:40 +0000 (21:01 +0000)
From-SVN: r1033

gcc/config/ns32k/ns32k.md

index 4fcfe780fd53f7280cc550a110c706db8cfd920f..243f40cbe1f28fdd059174caea292f6d63ea3a62 100644 (file)
     return \"adjspb %$-4\";
 }")
 
+(define_insn ""
+  [(set (match_operand:SI 0 "general_operand" "=g<")
+       (zero_extract:SI (match_operand:SI 1 "register_operand" "g")
+                        (match_operand:SI 2 "const_int_operand" "i")
+                        (match_operand:SI 3 "general_operand" "rK")))]
+  ""
+  "*
+{ if (GET_CODE (operands[3]) == CONST_INT)
+    return \"extsd %1,%0,%3,%2\";
+  else return \"extd %3,%1,%0,%2\";
+}")
+
 (define_insn "extzv"
   [(set (match_operand:SI 0 "general_operand" "=g<")
        (zero_extract:SI (match_operand:QI 1 "general_operand" "g")