From 602e9f0ae74cb349005d259ae50527fb72803f54 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 2 Sep 2020 10:17:21 +0930 Subject: ubsan: tc-d30v.c left shift cannot be represented * config/tc-d30v.c (parallel_ok): Use 1UL for left shift expression. --- gas/config/tc-d30v.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c index 9f0b0eb..c24dfac 100644 --- a/gas/config/tc-d30v.c +++ b/gas/config/tc-d30v.c @@ -862,9 +862,9 @@ parallel_ok (struct d30v_insn *op1, for (r = regno; r <= regno + z; r++) { if (r >= 32) - used_reg[j][1] |= 1L << (r - 32); + used_reg[j][1] |= 1UL << (r - 32); else - used_reg[j][0] |= 1L << r; + used_reg[j][0] |= 1UL << r; } } } -- cgit v1.1