{
if (satisfies_constraint_Is15 (GEN_INT (delta)))
{
- fprintf (file, "\taddi\t$r%d, $r%d, %ld\n",
+ fprintf (file, "\taddi\t$r%d, $r%d, " HOST_WIDE_INT_PRINT_DEC "\n",
this_regno, this_regno, delta);
}
else if (satisfies_constraint_Is20 (GEN_INT (delta)))
{
- fprintf (file, "\tmovi\t$ta, %ld\n", delta);
+ fprintf (file, "\tmovi\t$ta, " HOST_WIDE_INT_PRINT_DEC "\n", delta);
fprintf (file, "\tadd\t$r%d, $r%d, $ta\n", this_regno, this_regno);
}
else
{
- fprintf (file, "\tsethi\t$ta, hi20(%ld)\n", delta);
- fprintf (file, "\tori\t$ta, $ta, lo12(%ld)\n", delta);
+ fprintf (file,
+ "\tsethi\t$ta, hi20(" HOST_WIDE_INT_PRINT_DEC ")\n",
+ delta);
+ fprintf (file,
+ "\tori\t$ta, $ta, lo12(" HOST_WIDE_INT_PRINT_DEC ")\n",
+ delta);
fprintf (file, "\tadd\t$r%d, $r%d, $ta\n", this_regno, this_regno);
}
}
{
/* If user gives integer value directly (0~1023),
we just print out the value. */
- fprintf (stream, "%d", op_value);
+ fprintf (stream, HOST_WIDE_INT_PRINT_DEC, op_value);
}
else if (op_value < 0
|| op_value >= ((int) ARRAY_SIZE (nds32_intrinsic_register_names)
if (REG_P (op0) && CONST_INT_P (op1))
{
/* [Ra + imm] */
- fprintf (stream, "[%s + (%d)]",
- reg_names[REGNO (op0)], (int)INTVAL (op1));
+ fprintf (stream, "[%s + (" HOST_WIDE_INT_PRINT_DEC ")]",
+ reg_names[REGNO (op0)], INTVAL (op1));
}
else if (REG_P (op0) && REG_P (op1))
{
else if (REG_P (op0) && CONST_INT_P (op1))
{
/* [Ra], imm */
- fprintf (stream, "[%s], %d",
- reg_names[REGNO (op0)], (int)INTVAL (op1));
+ fprintf (stream, "[%s], " HOST_WIDE_INT_PRINT_DEC,
+ reg_names[REGNO (op0)], INTVAL (op1));
}
else
{