+2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
+
+ * config/h8300/h8300.c (const_costs): Remove a warning.
+ (output_plussi): Likewise.
+ (compute_plussi_length): Likewise.
+ (compute_plussi_cc): Likewise.
+
2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (addsi_h8300): Remove the last
switch (c)
{
case CONST_INT:
- switch (INTVAL (r))
- {
- case 0:
- return 0;
- case 1:
- case 2:
- case -1:
- case -2:
- return 0 + (outer_code == SET);
- case 4:
- case -4:
- if (TARGET_H8300H || TARGET_H8300S)
- return 0 + (outer_code == SET);
- else
- return 1;
- default:
- return 1;
- }
+ {
+ HOST_WIDE_INT n = INTVAL (r);
+
+ if (-4 <= n || n <= 4)
+ {
+ switch ((int) n)
+ {
+ case 0:
+ return 0;
+ case 1:
+ case 2:
+ case -1:
+ case -2:
+ return 0 + (outer_code == SET);
+ case 4:
+ case -4:
+ if (TARGET_H8300H || TARGET_H8300S)
+ return 0 + (outer_code == SET);
+ else
+ return 1;
+ }
+ }
+ return 1;
+ }
case CONST:
case LABEL_REF:
/* See if we can finish with 2 bytes. */
- switch (intval & 0xffffffff)
+ switch ((unsigned int) intval & 0xffffffff)
{
case 0x00000001:
case 0x00000002:
/* See if we can finish with 2 bytes. */
- switch (intval & 0xffffffff)
+ switch ((unsigned int) intval & 0xffffffff)
{
case 0x00000001:
case 0x00000002:
/* See if we can finish with 2 bytes. */
- switch (intval & 0xffffffff)
+ switch ((unsigned int) intval & 0xffffffff)
{
case 0x00000001:
case 0x00000002: