RFA: RX: Set the flags when performing a shift by zero

Mike Frysinger vapier@gentoo.org
Wed Jun 26 18:33:00 GMT 2013


On Wednesday 26 June 2013 06:35:57 Nick Clifton wrote:
>   The patch below fixes a problem with the RX simulator's handling of
>   shift instructions.  If the shift was by 0 the simulator would not set
>   the condition code bits.  The RX ISA allows a shift of 0, and the
>   condition codes should be set.  Fixing this also resolves an
>   unexpected failure in the GCC testsuite (builtin-bitops.c) where gcc's
>   compilation of the ffs() function relies upon the flag setting
>   behaviour.

hmm, the rx sim is missing any sort of testsuite.  might be a good time to 
start fixing that ? :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20130626/de740935/attachment.sig>


More information about the Gdb-patches mailing list