* [PATCH]: fix pr61111 Fixed width of mask.
@ 2014-05-09 12:29 Kenneth Zadeck
0 siblings, 0 replies; only message in thread
From: Kenneth Zadeck @ 2014-05-09 12:29 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
PR middle-end/61111
* fold-const.c (fold_binary_loc): Changed width of mask.
committed as revision 210274.
kenny
[-- Attachment #2: w.diff --]
[-- Type: text/x-patch, Size: 513 bytes --]
Index: gcc/fold-const.c
===================================================================
--- gcc/fold-const.c (revision 210253)
+++ gcc/fold-const.c (working copy)
@@ -11358,7 +11358,7 @@ fold_binary_loc (location_t loc,
wide_int c3 = c1.and_not (c2);
for (w = BITS_PER_UNIT; w <= width; w <<= 1)
{
- wide_int mask = wi::mask (width - w, false,
+ wide_int mask = wi::mask (w, false,
TYPE_PRECISION (type));
if (((c1 | c2) & mask) == mask && c1.and_not (mask) == 0)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-09 12:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-09 12:29 [PATCH]: fix pr61111 Fixed width of mask Kenneth Zadeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).