aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-11-08 08:59:59 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-11-08 08:59:59 -0500
commit8aaa43506157312bf0aaacf289c2df801569d71c (patch)
tree1b5d8d65f0d755f72776eae74ca34fb94a1781bf
parentbea607ca1025ecce38597660ec41e2f249a00ecd (diff)
downloadgcc-8aaa43506157312bf0aaacf289c2df801569d71c.zip
gcc-8aaa43506157312bf0aaacf289c2df801569d71c.tar.gz
gcc-8aaa43506157312bf0aaacf289c2df801569d71c.tar.bz2
(mov*cc_{,soft_}insn): Use match_operator to test the comparison and
check that the condition code register is used. From-SVN: r10572
-rw-r--r--gcc/config/arm/arm.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 2ccc61e..461aead 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -3361,7 +3361,8 @@
(define_insn "*movsicc_insn"
[(set (match_operand:SI 0 "register_operand" "=r,r")
- (if_then_else (match_operand 1 "comparison_operator" "")
+ (if_then_else (match_operator 1 "comparison_operator"
+ [(reg 24) (const_int 0)])
(match_operand:SI 2 "arm_not_operand" "rI,K")
(match_operand:SI 3 "register_operand" "0,0")))]
""
@@ -3373,7 +3374,8 @@
(define_insn "*movsfcc_hard_insn"
[(set (match_operand:SF 0 "register_operand" "=f")
- (if_then_else (match_operand 1 "comparison_operator" "")
+ (if_then_else (match_operator 1 "comparison_operator"
+ [(reg 24) (const_int 0)])
(match_operand:SF 2 "register_operand" "f")
(match_operand:SF 3 "register_operand" "0")))]
"TARGET_HARD_FLOAT"
@@ -3383,7 +3385,8 @@
(define_insn "*movsfcc_soft_insn"
[(set (match_operand:SF 0 "register_operand" "=r")
- (if_then_else (match_operand 1 "comparison_operator" "")
+ (if_then_else (match_operator 1 "comparison_operator"
+ [(reg 24) (const_int 0)])
(match_operand:SF 2 "register_operand" "r")
(match_operand:SF 3 "register_operand" "0")))]
"TARGET_SOFT_FLOAT"
@@ -3393,7 +3396,8 @@
(define_insn "*movdfcc_insn"
[(set (match_operand:DF 0 "register_operand" "=f")
- (if_then_else (match_operand 1 "comparison_operator" "")
+ (if_then_else (match_operator 1 "comparison_operator"
+ [(reg 24) (const_int 0)])
(match_operand:DF 2 "register_operand" "f")
(match_operand:DF 3 "register_operand" "0")))]
"TARGET_HARD_FLOAT"