From 9e53d97c3c13ded66f6c4c7b0970e5453213adf0 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 13 Sep 2011 18:12:53 +0000 Subject: [PATCH] h8300.md: Use match_test rather than eq/ne symbol_ref throughout file. gcc/ * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref throughout file. From-SVN: r178822 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.md | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 33d7b04c1ec..1c326efa38a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-09-13 Richard Sandiford + + * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref + throughout file. + 2011-09-13 Richard Sandiford * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index fa1809dfa77..bf41e6669a6 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -171,9 +171,9 @@ (define_asm_attributes [(set (attr "length") - (cond [(ne (symbol_ref "TARGET_H8300") (const_int 0)) (const_int 4) - (ne (symbol_ref "TARGET_H8300H") (const_int 0)) (const_int 10) - (ne (symbol_ref "TARGET_H8300S") (const_int 0)) (const_int 10)] + (cond [(match_test "TARGET_H8300") (const_int 4) + (match_test "TARGET_H8300H") (const_int 10) + (match_test "TARGET_H8300S") (const_int 10)] (const_int 14)))]) (include "predicates.md") @@ -2416,7 +2416,7 @@ }" [(set_attr "type" "branch") (set (attr "delay_slot") - (if_then_else (ne (symbol_ref "TARGET_H8300SX") (const_int 0)) + (if_then_else (match_test "TARGET_H8300SX") (const_string "jump") (const_string "none"))) (set_attr "cc" "none")]) -- 2.30.2