From: Oleg Endo Date: Sat, 21 Jul 2012 19:40:37 +0000 (+0000) Subject: sh.md: Correct comment regarding clrt and sett insns. X-Git-Tag: releases/gcc-4.8.0~4347 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55f7c48177d5fd042b0c19a45a2977d2ea0d450d;p=thirdparty%2Fgcc.git sh.md: Correct comment regarding clrt and sett insns. * config/sh/sh.md: Correct comment regarding clrt and sett insns. From-SVN: r189747 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2838d787271..51b24829e955 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-07-21 Oleg Endo + + * config/sh/sh.md: Correct comment regarding clrt and sett insns. + 2012-07-21 Andrew Pinski * config/mips/mips.md (*popcountdi2_trunc): New pattern diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 14463473caa8..0358b751b20d 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))]