aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2011-05-30 22:56:32 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2011-05-30 22:56:32 +0000
commit5f1330380a45aa4d5eb5da773ce0e394418008c7 (patch)
tree724192e63c606bbe59e0a272aec467499c454417 /gcc/config
parent283e624c9f8007a9048b55e3be3dfad991cff346 (diff)
downloadgcc-5f1330380a45aa4d5eb5da773ce0e394418008c7.zip
gcc-5f1330380a45aa4d5eb5da773ce0e394418008c7.tar.gz
gcc-5f1330380a45aa4d5eb5da773ce0e394418008c7.tar.bz2
sh.c (expand_cbranchdi4): Set msw_skip when the high part of the second operand is 0.
* config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high part of the second operand is 0. * gcc.c-torture/execute/pr49186.c: New. From-SVN: r174456
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/sh/sh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 94c8ba4..fb204c6 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -2143,7 +2143,10 @@ expand_cbranchdi4 (rtx *operands, enum rtx_code comparison)
else if (op2h != CONST0_RTX (SImode))
msw_taken = LTU;
else
- break;
+ {
+ msw_skip = swap_condition (LTU);
+ break;
+ }
msw_skip = swap_condition (msw_taken);
}
break;