* gencode.c (tab): Avoid lvalue casts. Suggested by
Ralf Corsepius <ralf.corsepius@rtems.org>.
This commit is contained in:
parent
61e264e76f
commit
195b8a572e
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* gencode.c (tab): Avoid lvalue casts. Suggested by
|
||||
Ralf Corsepius <ralf.corsepius@rtems.org>.
|
||||
|
||||
2005-04-12 Jonathan Larmour <jifl@eCosCentric.com>
|
||||
|
||||
* gencode.c (tab): Avoid inserting code before variables all declared.
|
||||
|
|
|
@ -215,7 +215,9 @@ op tab[] =
|
|||
"RAISE_EXCEPTION_IF_IN_DELAY_SLOT ();",
|
||||
"if (R0 == 0)",
|
||||
" R[n] = 0xffffffff;",
|
||||
"else (unsigned int) R[n] = (unsigned int) R[n] / (unsigned int) R0;",
|
||||
"/* FIXME: The result may be implementation-defined if it is outside */",
|
||||
"/* the range of signed int (i.e. if R[n] was negative and R0 == 1). */",
|
||||
"else R[n] = R[n] / (unsigned int) R0;",
|
||||
"L (n);",
|
||||
},
|
||||
{ "n", "0n", "mulr R0,<REG_N>", "0100nnnn10000000",
|
||||
|
|
Loading…
Reference in a new issue