aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-05-03 02:16:16 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2004-05-03 02:16:16 +0000
commit5f2b959917e0d13044851e6165e9c17d4f4b3a0f (patch)
treef13fb0213b9ae2d756342b3d33e6e951ac2c4cea /gcc
parent1e5b67ff4c4cc67e7650c2de6a0058a1bc307078 (diff)
downloadgcc-5f2b959917e0d13044851e6165e9c17d4f4b3a0f.zip
gcc-5f2b959917e0d13044851e6165e9c17d4f4b3a0f.tar.gz
gcc-5f2b959917e0d13044851e6165e9c17d4f4b3a0f.tar.bz2
frv.md (*return_true, [...]): New patterns.
2003-11-19 Richard Sandiford <rsandifo@redhat.com> * config/frv/frv.md (*return_true, *return_false): New patterns. From-SVN: r81424
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/frv/frv.md24
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cda4ab9..9a23747 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-02 Alexandre Oliva <aoliva@redhat.com>
+
+ 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
+ * config/frv/frv.md (*return_true, *return_false): New patterns.
+
2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
* rtl.h (PHI_NODE_P): Remove.
diff --git a/gcc/config/frv/frv.md b/gcc/config/frv/frv.md
index 36b6d8e..92329cc 100644
--- a/gcc/config/frv/frv.md
+++ b/gcc/config/frv/frv.md
@@ -5539,6 +5539,30 @@
[(set_attr "length" "4")
(set_attr "type" "jump,jumpl")])
+(define_insn "*return_true"
+ [(set (pc)
+ (if_then_else (match_operator:CC 0 "signed_relational_operator"
+ [(match_operand 1 "icc_operand" "t")
+ (const_int 0)])
+ (return)
+ (pc)))]
+ "direct_return_p ()"
+ "b%c0lr %1,%#"
+ [(set_attr "length" "4")
+ (set_attr "type" "jump")])
+
+(define_insn "*return_false"
+ [(set (pc)
+ (if_then_else (match_operator:CC 0 "signed_relational_operator"
+ [(match_operand 1 "icc_operand" "t")
+ (const_int 0)])
+ (pc)
+ (return)))]
+ "direct_return_p ()"
+ "b%C0lr %1,%#"
+ [(set_attr "length" "4")
+ (set_attr "type" "jump")])
+
(define_insn "*return_unsigned_true"
[(set (pc)
(if_then_else (match_operator:CC_UNS 0 "unsigned_relational_operator"