* PR26480 UBSAN: tc-nios2.c:1634 left shift cannot be represented
@ 2020-08-31 10:50 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-08-31 10:50 UTC (permalink / raw)
To: binutils
PR 26480
* config/tc-nios2.c (nios2_parse_reglist): Shift 1UL left.
diff --git a/gas/config/tc-nios2.c b/gas/config/tc-nios2.c
index 16695c5c06..0134b15ae0 100644
--- a/gas/config/tc-nios2.c
+++ b/gas/config/tc-nios2.c
@@ -1631,7 +1631,7 @@ nios2_parse_reglist (char *token, const struct nios2_opcode *op)
}
}
- mask |= 1 << regno;
+ mask |= 1UL << regno;
last = regno;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-31 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 10:50 PR26480 UBSAN: tc-nios2.c:1634 left shift cannot be represented Alan Modra
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).