aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-05-17 08:43:03 +0000
committerNick Clifton <nickc@gcc.gnu.org>2011-05-17 08:43:03 +0000
commit39960f7a9f564abf1fc12646a08baf84ad268981 (patch)
treea0454be769a998d70c3d1faa8d4ffb2497efa76e
parent4ffc4134c790d2d2543de6cdc3c291692b5f492a (diff)
downloadgcc-39960f7a9f564abf1fc12646a08baf84ad268981.zip
gcc-39960f7a9f564abf1fc12646a08baf84ad268981.tar.gz
gcc-39960f7a9f564abf1fc12646a08baf84ad268981.tar.bz2
rx.md (bitset_in_memory): Use rx_restricted_mem_operand.
* config/rx/rx.md (bitset_in_memory): Use rx_restricted_mem_operand. (bitinvert_in_memory): Likewise. (bitclr_in_memory): Likewise. From-SVN: r173822
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/rx/rx.md6
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 637241f..9c490d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -2,6 +2,9 @@
* config/rx/rx.md: Add peephole to remove redundant extensions
after loads.
+ (bitset_in_memory): Use rx_restricted_mem_operand.
+ (bitinvert_in_memory): Likewise.
+ (bitclr_in_memory): Likewise.
2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
Nick Clifton <nickc@redhat.com>
diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md
index 227fe31..070f248 100644
--- a/gcc/config/rx/rx.md
+++ b/gcc/config/rx/rx.md
@@ -1831,7 +1831,7 @@
)
(define_insn "*bitset_in_memory"
- [(set (match_operand:QI 0 "memory_operand" "+Q")
+ [(set (match_operand:QI 0 "rx_restricted_mem_operand" "+Q")
(ior:QI (ashift:QI (const_int 1)
(match_operand:QI 1 "nonmemory_operand" "ri"))
(match_dup 0)))]
@@ -1852,7 +1852,7 @@
)
(define_insn "*bitinvert_in_memory"
- [(set (match_operand:QI 0 "memory_operand" "+Q")
+ [(set (match_operand:QI 0 "rx_restricted_mem_operand" "+Q")
(xor:QI (ashift:QI (const_int 1)
(match_operand:QI 1 "nonmemory_operand" "ri"))
(match_dup 0)))]
@@ -1875,7 +1875,7 @@
)
(define_insn "*bitclr_in_memory"
- [(set (match_operand:QI 0 "memory_operand" "+Q")
+ [(set (match_operand:QI 0 "rx_restricted_mem_operand" "+Q")
(and:QI (not:QI
(ashift:QI
(const_int 1)