aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2012-09-10 21:09:03 +0000
committerMaciej W. Rozycki <macro@gcc.gnu.org>2012-09-10 21:09:03 +0000
commit05279bcd5295c7d5e3fc8e4bddf2d7b69bfa527f (patch)
tree81dc7a324623d1e6c94520e911fadced81296869 /gcc
parentaadb5b43aed03688d8dd9875de09b8e1e65cb989 (diff)
downloadgcc-05279bcd5295c7d5e3fc8e4bddf2d7b69bfa527f.zip
gcc-05279bcd5295c7d5e3fc8e4bddf2d7b69bfa527f.tar.gz
gcc-05279bcd5295c7d5e3fc8e4bddf2d7b69bfa527f.tar.bz2
* config/rs6000/rs6000.md: Move a splitter next to its insn.
From-SVN: r191162
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.md28
2 files changed, 18 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index de27e83..d75157f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * config/rs6000/rs6000.md: Move a splitter next to its insn.
+
2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
PR target/54089
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 5dae300..f2bc15f 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -957,6 +957,20 @@
#"
[(set_attr "type" "compare")
(set_attr "length" "4,8")])
+
+(define_split
+ [(set (match_operand:CC 2 "cc_reg_not_micro_cr0_operand" "")
+ (compare:CC (sign_extend:SI (match_operand:HI 1 "gpc_reg_operand" ""))
+ (const_int 0)))
+ (set (match_operand:SI 0 "gpc_reg_operand" "")
+ (sign_extend:SI (match_dup 1)))]
+ "reload_completed"
+ [(set (match_dup 0)
+ (sign_extend:SI (match_dup 1)))
+ (set (match_dup 2)
+ (compare:CC (match_dup 0)
+ (const_int 0)))]
+ "")
;; IBM 405, 440, 464 and 476 half-word multiplication operations.
@@ -1489,20 +1503,6 @@
DONE;
})
-(define_split
- [(set (match_operand:CC 2 "cc_reg_not_micro_cr0_operand" "")
- (compare:CC (sign_extend:SI (match_operand:HI 1 "gpc_reg_operand" ""))
- (const_int 0)))
- (set (match_operand:SI 0 "gpc_reg_operand" "")
- (sign_extend:SI (match_dup 1)))]
- "reload_completed"
- [(set (match_dup 0)
- (sign_extend:SI (match_dup 1)))
- (set (match_dup 2)
- (compare:CC (match_dup 0)
- (const_int 0)))]
- "")
-
;; Fixed-point arithmetic insns.
(define_expand "add<mode>3"