2003-07-09 Michael Snyder <msnyder@redhat.com>

* gencode.c (prnd): Clear LSW of result to zeros.
This commit is contained in:
Michael Snyder 2003-07-23 21:47:28 +00:00
parent b2bc310144
commit 1b606171ad
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
2003-07-09 Michael Snyder <msnyder@redhat.com> 2003-07-09 Michael Snyder <msnyder@redhat.com>
* gencode.c (prnd): Clear LSW of result to zeros.
* gencode.c (pmuls): Expression is mis-parenthesized. * gencode.c (pmuls): Expression is mis-parenthesized.
* gencode.c (ppi_gensim): For a conditional ppi insn, if the * gencode.c (ppi_gensim): For a conditional ppi insn, if the
condition is false, we want to return (not break). A break condition is false, we want to return (not break). A break

View file

@ -1479,7 +1479,7 @@ op ppi_tab[] =
"int Sx = DSP_R (x);", "int Sx = DSP_R (x);",
"int Sx_grd = GET_DSP_GRD (x);", "int Sx_grd = GET_DSP_GRD (x);",
"", "",
"res = Sx + 0x8000;", "res = (Sx + 0x8000) & 0xffff0000;",
"carry = (unsigned) res < (unsigned) Sx;", "carry = (unsigned) res < (unsigned) Sx;",
"res_grd = Sx_grd + carry;", "res_grd = Sx_grd + carry;",
"COMPUTE_OVERFLOW;", "COMPUTE_OVERFLOW;",
@ -1512,7 +1512,7 @@ op ppi_tab[] =
"int Sy = DSP_R (y);", "int Sy = DSP_R (y);",
"int Sy_grd = SIGN32 (Sy);", "int Sy_grd = SIGN32 (Sy);",
"", "",
"res = Sy + 0x8000;", "res = (Sy + 0x8000) & 0xffff0000;",
"carry = (unsigned) res < (unsigned) Sy;", "carry = (unsigned) res < (unsigned) Sy;",
"res_grd = Sy_grd + carry;", "res_grd = Sy_grd + carry;",
"COMPUTE_OVERFLOW;", "COMPUTE_OVERFLOW;",