* gencode.c (tab): For shad snd shld, fix result for
(op1 < 0 && shift_amount == 0).
This commit is contained in:
parent
c09bdfe5c9
commit
a134f341e6
@ -1,3 +1,8 @@
|
||||
2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* gencode.c (tab): For shad snd shld, fix result for
|
||||
(op1 < 0 && shift_amount == 0).
|
||||
|
||||
2004-02-02 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* gencode.c (movua.l): Set thislock to 0, not n.
|
||||
|
@ -1054,7 +1054,7 @@ op tab[] =
|
||||
},
|
||||
|
||||
{ "n", "mn", "shad <REG_M>,<REG_N>", "0100nnnnmmmm1100",
|
||||
"R[n] = (R[m] < 0) ? (R[n] >> ((-R[m])&0x1f)) : (R[n] << (R[m] & 0x1f));",
|
||||
"R[n] = (R[m] < 0) ? (R[m]&0x1f ? R[n] >> ((-R[m])&0x1f) : R[n] >> 31) : (R[n] << (R[m] & 0x1f));",
|
||||
},
|
||||
|
||||
{ "n", "n", "shal <REG_N>", "0100nnnn00100000",
|
||||
@ -1068,7 +1068,7 @@ op tab[] =
|
||||
},
|
||||
|
||||
{ "n", "mn", "shld <REG_M>,<REG_N>", "0100nnnnmmmm1101",
|
||||
"R[n] = (R[m] < 0) ? (UR[n] >> ((-R[m])&0x1f)): (R[n] << (R[m] & 0x1f));",
|
||||
"R[n] = (R[m] < 0) ? (R[m]&0x1f ? UR[n] >> ((-R[m])&0x1f) : 0): (R[n] << (R[m] & 0x1f));",
|
||||
},
|
||||
|
||||
{ "n", "n", "shll <REG_N>", "0100nnnn00000000",
|
||||
|
Loading…
Reference in New Issue
Block a user