public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR26503 UBSAN: tc-v850.c:1447 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 26503
	* config/tc-v850.c (parse_register_list): Shift 1u left.

diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index 865d45cc44..0ac5682935 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -1444,7 +1444,7 @@ parse_register_list (unsigned long *insn,
 	    {
 	      if (regs[i] == exp.X_add_number)
 		{
-		  *insn |= (1 << i);
+		  *insn |= 1u << i;
 		  break;
 		}
 	    }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-31 10:54 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 PR26503 UBSAN: tc-v850.c:1447 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).