diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2007-10-22 16:04:43 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2007-10-22 16:04:43 +0000 |
commit | a69f60de1a65e45a5b9dccc539ab0b0647f199e7 (patch) | |
tree | cd13227f33d1982d0db094271095840d228eeb86 /cpu/cris.cpu | |
parent | f88e9fd3159d3b7786ccc1bf831d8e255c1df174 (diff) | |
download | gdb-a69f60de1a65e45a5b9dccc539ab0b0647f199e7.zip gdb-a69f60de1a65e45a5b9dccc539ab0b0647f199e7.tar.gz gdb-a69f60de1a65e45a5b9dccc539ab0b0647f199e7.tar.bz2 |
* cris.cpu (movs, movu): Use result of extension operation when
updating flags.
Diffstat (limited to 'cpu/cris.cpu')
-rw-r--r-- | cpu/cris.cpu | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpu/cris.cpu b/cpu/cris.cpu index 2bb74dd..633abc0 100644 --- a/cpu/cris.cpu +++ b/cpu/cris.cpu @@ -2033,9 +2033,10 @@ (.pmacro (BW) (sequence - ((BW newval)) - (set newval Rs) - (set Rd (ext SI newval)) + ((BW tmpops) (SI newval)) + (set tmpops Rs) + (set newval (ext SI tmpops)) + (set Rd newval) (setf-move SI newval))) ) @@ -2060,9 +2061,10 @@ (.pmacro (BW) (sequence - ((BW newval)) - (set newval Rs) - (set Rd (zext SI newval)) + ((BW tmpops) (SI newval)) + (set tmpops Rs) + (set newval (zext SI tmpops)) + (set Rd newval) (setf-move SI newval))) ) |