i386.md (tablejump): Sign extend the operand.

* i386.md (tablejump): Sign extend the operand.
	* i386.c (classify_argument): Fix missed case from previous patch.

From-SVN: r56231
This commit is contained in:
Jan Hubicka 2002-08-12 12:50:02 +02:00 committed by Jan Hubicka
parent cbd1032a3a
commit c16576e6c6
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
* i386.md (tablejump): Sign extend the operand.
* i386.c (classify_argument): Fix missed case from previous patch.
2002-08-12 Neil Booth <neil@daikokuya.co.uk>
* c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move

View File

@ -1727,7 +1727,7 @@ classify_argument (mode, type, classes, bit_offset)
return 0;
for (i = 0; i < num; i++)
{
int pos = (offset + bit_offset) / 8 / 8;
int pos = (offset + (bit_offset % 64)) / 8 / 8;
classes[i + pos] =
merge_classes (subclasses[i], classes[i + pos]);
}

View File

@ -13154,7 +13154,7 @@
op1 = operands[0];
}
operands[0] = expand_simple_binop (Pmode, code, op0, op1, NULL_RTX, 1,
operands[0] = expand_simple_binop (Pmode, code, op0, op1, NULL_RTX, 0,
OPTAB_DIRECT);
}
})