diff options
author | Oleg Endo <olegendo@gcc.gnu.org> | 2012-07-21 19:40:37 +0000 |
---|---|---|
committer | Oleg Endo <olegendo@gcc.gnu.org> | 2012-07-21 19:40:37 +0000 |
commit | 55f7c48177d5fd042b0c19a45a2977d2ea0d450d (patch) | |
tree | 62600dc9f5d5b3c4131a1d2b2f1df666785f06c6 | |
parent | a81306122a83ef8067245c6b49d0c2a03add63e4 (diff) | |
download | gcc-55f7c48177d5fd042b0c19a45a2977d2ea0d450d.zip gcc-55f7c48177d5fd042b0c19a45a2977d2ea0d450d.tar.gz gcc-55f7c48177d5fd042b0c19a45a2977d2ea0d450d.tar.bz2 |
sh.md: Correct comment regarding clrt and sett insns.
* config/sh/sh.md: Correct comment regarding clrt and sett insns.
From-SVN: r189747
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/sh/sh.md | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2838d7..51b2482 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-07-21 Oleg Endo <olegendo@gcc.gnu.org> + + * config/sh/sh.md: Correct comment regarding clrt and sett insns. + 2012-07-21 Andrew Pinski <apinski@cavium.com> * config/mips/mips.md (*popcountdi2_trunc): New pattern diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 1446347..0358b75 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -5094,9 +5094,14 @@ label: DONE; }) -;; These two patterns can happen as the result of optimization, when -;; comparisons get simplified to a move of zero or 1 into the T reg. -;; They don't disappear completely, because the T reg is a fixed hard reg. +;; The clrt and sett patterns can happen as the result of optimization and +;; insn expansion. +;; Comparisons might get simplified to a move of zero or 1 into the T reg. +;; In this case they might not disappear completely, because the T reg is +;; a fixed hard reg. +;; When DImode operations that use the T reg as carry/borrow are split into +;; individual SImode operations, the T reg is usually cleared before the +;; first SImode insn. (define_insn "clrt" [(set (reg:SI T_REG) (const_int 0))] |