summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-02 17:59:37 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-02 17:59:37 +0000
commit6033bc948fd739a6b2ef6bc571ce250c197e8ea8 (patch)
treeb7027e3ed2a5301b4b65821cf09903b3bfef21c7
parentc28ae87f24c2db6f1f157e7016d33ca5adb8ee04 (diff)
downloadppe42-gcc-6033bc948fd739a6b2ef6bc571ce250c197e8ea8.tar.gz
ppe42-gcc-6033bc948fd739a6b2ef6bc571ce250c197e8ea8.zip
Jan Hubicka <hubicka@freesoft.cz>
* i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0 (mov $-1 to or peepholer): Enable for pentium when optimizing for speed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29771 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.md12
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index df280fc51c2..901ac95cefd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 2 10:57:56 1999 Jan Hubicka <hubicka@freesoft.cz>
+
+ * i386.md (mov?i patterns): Fix handling of TARGET_USE_MOV0
+ (mov $-1 to or peepholer): Enable for pentium when optimizing for
+ speed.
+
Sat Oct 2 10:55:25 1999 Jan Hubicka <hubicka@freesoft.cz>
* builtins.c (expand_builtin_strlen): Fix best mode searching loop.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index a8281cc3745..9c47e2d8abb 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -1162,7 +1162,7 @@
[(set (attr "type")
(cond [(and (match_operand:SI 1 "const0_operand" "")
(and (match_operand:SI 0 "register_operand" "")
- (ne (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
+ (eq (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
(const_string "alu1")
(and (ne (symbol_ref "flag_pic") (const_int 0))
(match_operand:SI 1 "symbolic_operand" ""))
@@ -1254,7 +1254,7 @@
[(set (attr "type")
(cond [(and (match_operand:HI 1 "const0_operand" "")
(and (match_operand:HI 0 "register_operand" "")
- (ne (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
+ (eq (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
(const_string "alu1")
(and (ne (symbol_ref "TARGET_MOVX")
(const_int 0))
@@ -1431,7 +1431,7 @@
[(set (attr "type")
(cond [(and (match_operand:QI 1 "const0_operand" "")
(and (match_operand:QI 0 "register_operand" "")
- (ne (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
+ (eq (symbol_ref "TARGET_USE_MOV0") (const_int 0))))
(const_string "alu1")
(eq_attr "alternative" "3")
(const_string "imovx")
@@ -8146,7 +8146,8 @@
(define_peephole2
[(set (match_operand:SI 0 "register_operand" "")
(const_int -1))]
- "optimize_size && reg_dead_p (insn, gen_rtx_REG (CCmode, FLAGS_REG))"
+ "(optimize_size || TARGET_PENTIUM)
+ && reg_dead_p (insn, gen_rtx_REG (CCmode, FLAGS_REG))"
[(parallel [(set (match_dup 0)
(ior:SI (match_dup 0) (const_int -1)))
(clobber (reg:CC 17))])]
@@ -8155,7 +8156,8 @@
(define_peephole2
[(set (match_operand:HI 0 "register_operand" "")
(const_int -1))]
- "optimize_size && reg_dead_p (insn, gen_rtx_REG (CCmode, FLAGS_REG))"
+ "(optimize_size || TARGET_PENTIUM)
+ && reg_dead_p (insn, gen_rtx_REG (CCmode, FLAGS_REG))"
[(parallel [(set (match_dup 0)
(ior:HI (match_dup 0) (const_int -1)))
(clobber (reg:CC 17))])]
OpenPOWER on IntegriCloud