aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2016-04-28 01:51:30 +0200
committerUros Bizjak <uros@gcc.gnu.org>2016-04-28 01:51:30 +0200
commitc68439b9e418ec8bc13d4f544ce7a07b75181846 (patch)
treeae30cb32261b0912500a961b203c97392dec1039
parent4245b0871ca60249982048731687d5c95c10cb91 (diff)
downloadgcc-c68439b9e418ec8bc13d4f544ce7a07b75181846.zip
gcc-c68439b9e418ec8bc13d4f544ce7a07b75181846.tar.gz
gcc-c68439b9e418ec8bc13d4f544ce7a07b75181846.tar.bz2
i386.md (sign_extend to memory peephole2s): Use general_reg_operand instead of register_operand predicate.
* config/i386/i386.md (sign_extend to memory peephole2s): Use general_reg_operand instead of register_operand predicate. From-SVN: r235539
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 91e4b046..5905a41 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-04-28 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.md (sign_extend to memory peephole2s): Use
+ general_reg_operand instead of register_operand predicate.
+
2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
* params.def (MIN_PARTITION_SIZE): Set default value to 10000.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 049f625..ccba911 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -3992,8 +3992,8 @@
;; being split with the above splitter.
(define_peephole2
[(set (match_operand:SI 0 "memory_operand")
- (match_operand:SI 1 "register_operand"))
- (set (match_operand:SI 2 "register_operand") (match_dup 1))
+ (match_operand:SI 1 "general_reg_operand"))
+ (set (match_operand:SI 2 "general_reg_operand") (match_dup 1))
(parallel [(set (match_dup 2)
(ashiftrt:SI (match_dup 2) (const_int 31)))
(clobber (reg:CC FLAGS_REG))])
@@ -4009,8 +4009,8 @@
(define_peephole2
[(set (match_operand:SI 0 "memory_operand")
- (match_operand:SI 1 "register_operand"))
- (parallel [(set (match_operand:SI 2 "register_operand")
+ (match_operand:SI 1 "general_reg_operand"))
+ (parallel [(set (match_operand:SI 2 "general_reg_operand")
(ashiftrt:SI (match_dup 1) (const_int 31)))
(clobber (reg:CC FLAGS_REG))])
(set (match_operand:SI 3 "memory_operand") (match_dup 2))]