From f07064d38b93bdd383feb78f4c226d9023453ff2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 10 Jul 1995 20:03:06 -0400 Subject: [PATCH] (matcher for (shiftable_op (cond-exp) (reg))): If shiftable_op is minus, then subtract from zero when cond fails. From-SVN: r10115 --- gcc/config/arm/arm.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index db8a3579857..2ccc61ea338 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -4114,6 +4114,8 @@ 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\"; -- 2.30.2