diff options
author | Richard Henderson <rth@cygnus.com> | 2000-09-18 11:30:24 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-09-18 11:30:24 -0700 |
commit | 1f3f36d154896f68c1c35420121782ed236da177 (patch) | |
tree | dcf8ba6562e72efc25294c86c33f5f6a398ca59f /gcc/explow.c | |
parent | 5bd60ce6de2d4e0b0e7975c04772393b76b97909 (diff) | |
download | gcc-1f3f36d154896f68c1c35420121782ed236da177.zip gcc-1f3f36d154896f68c1c35420121782ed236da177.tar.gz gcc-1f3f36d154896f68c1c35420121782ed236da177.tar.bz2 |
combine.c (if_then_else_cond): Canonicalize BImode true to STORE_FLAG_VALUE.
* combine.c (if_then_else_cond): Canonicalize BImode true to
STORE_FLAG_VALUE.
* explow.c (trunc_int_for_mode): Likewise.
From-SVN: r36507
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index ce7118e..b2763e3 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -52,6 +52,10 @@ trunc_int_for_mode (c, mode) { int width = GET_MODE_BITSIZE (mode); + /* Canonicalize BImode to 0 and STORE_FLAG_VALUE. */ + if (mode == BImode) + return c & 1 ? STORE_FLAG_VALUE : 0; + /* We clear out all bits that don't belong in MODE, unless they and our sign bit are all one. So we get either a reasonable negative value or a reasonable unsigned value. */ |