(strict_low_part add/subtract recognizers): Use %2, not %1, in template.
authorRichard Stallman <rms@gnu.org>
Sat, 7 Aug 1993 18:51:16 +0000 (18:51 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 7 Aug 1993 18:51:16 +0000 (18:51 +0000)
From-SVN: r5100

gcc/config/ns32k/ns32k.md

index c02dc1ce29348bb21ddf0d787c66b4b4a257020e..556e94bd43abce28ca779618555ccb654eabc907 100644 (file)
 {
   if (GET_CODE (operands[1]) == CONST_INT
       && INTVAL (operands[1]) >-9 && INTVAL(operands[1]) < 8)
-    return \"addqw %1,%0\";
-  return \"addw %1,%0\";
+    return \"addqw %2,%0\";
+  return \"addw %2,%0\";
 }")
 
 (define_insn "addqi3"
 {
   if (GET_CODE (operands[1]) == CONST_INT
       && INTVAL (operands[1]) >-9 && INTVAL(operands[1]) < 8)
-    return \"addqb %1,%0\";
-  return \"addb %1,%0\";
+    return \"addqb %2,%0\";
+  return \"addb %2,%0\";
 }")
 \f
 ;;- All kinds of subtract instructions.
 {
   if (GET_CODE (operands[1]) == CONST_INT
       && INTVAL (operands[1]) >-8 && INTVAL(operands[1]) < 9)
-    return \"addqw %$%n1,%0\";
-  return \"subw %1,%0\";
+    return \"addqw %$%n2,%0\";
+  return \"subw %2,%0\";
 }")
 
 (define_insn "subqi3"
 {
   if (GET_CODE (operands[1]) == CONST_INT
       && INTVAL (operands[1]) >-8 && INTVAL(operands[1]) < 9)
-    return \"addqb %$%n1,%0\";
-  return \"subb %1,%0\";
+    return \"addqb %$%n2,%0\";
+  return \"subb %2,%0\";
 }")
 \f
 ;;- Multiply instructions.