aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-25 08:55:01 +0000
committerAlan Modra <amodra@gmail.com>2000-04-25 08:55:01 +0000
commit3b0ec529f240d74205b50748054b276ca301aed7 (patch)
tree184587b397ec5d1a06795cc97cbe0d03cb9efedd /gas/config
parentee68970f7e13bcb1aee2ed0800550a94ae91be1e (diff)
downloadgdb-3b0ec529f240d74205b50748054b276ca301aed7.zip
gdb-3b0ec529f240d74205b50748054b276ca301aed7.tar.gz
gdb-3b0ec529f240d74205b50748054b276ca301aed7.tar.bz2
Keep shift count smaller than 32.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index f7e3c34..c9294a5 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -471,12 +471,12 @@ offset_in_range (val, size)
{
case 1: mask = ((addressT) 1 << 8) - 1; break;
case 2: mask = ((addressT) 1 << 16) - 1; break;
- case 4: mask = ((addressT) 1 << 32) - 1; break;
+ case 4: mask = ((addressT) 2 << 31) - 1; break;
default: abort();
}
/* If BFD64, sign extend val. */
- if ((val & ~ (((addressT) 1 << 32) - 1)) == 0)
+ if ((val & ~ (((addressT) 2 << 31) - 1)) == 0)
val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31);
if ((val & ~ mask) != 0 && (val & ~ mask) != ~ mask)