(matcher for (shiftable_op (cond-exp) (reg))): If shiftable_op is
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 11 Jul 1995 00:03:06 +0000 (20:03 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 11 Jul 1995 00:03:06 +0000 (20:03 -0400)
minus, then subtract from zero when cond fails.

From-SVN: r10115

gcc/config/arm/arm.md

index db8a357985728322fe2b87f084cffd73e643f586..2ccc61ea338212999e4d9847766edd2c195f4b4d 100644 (file)
   output_asm_insn (\"cmp\\t%2, %3\", operands);
   if (GET_CODE (operands[5]) == AND)
     output_asm_insn (\"mov%D4\\t%0, #0\", operands);
+  else if (GET_CODE (operands[5]) == MINUS)
+    output_asm_insn (\"rsb%D4\\t%0, %1, #0\", operands);
   else if (which_alternative != 0)
     output_asm_insn (\"mov%D4\\t%0, %1\", operands);
   return \"%i5%d4\\t%0, %1, #1\";