From a69f60de1a65e45a5b9dccc539ab0b0647f199e7 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Mon, 22 Oct 2007 16:04:43 +0000 Subject: * cris.cpu (movs, movu): Use result of extension operation when updating flags. --- cpu/ChangeLog | 5 +++++ cpu/cris.cpu | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'cpu') diff --git a/cpu/ChangeLog b/cpu/ChangeLog index dd469d1b89..d2b0d0f137 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2007-10-22 Hans-Peter Nilsson + + * cris.cpu (movs, movu): Use result of extension operation when + updating flags. + 2007-07-04 Nick Clifton * cris.cpu: Update copyright notice to refer to GPLv3. diff --git a/cpu/cris.cpu b/cpu/cris.cpu index 2bb74dde82..633abc0e12 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))) ) -- cgit v1.2.3