[PATCH] fix for aarch64 sim adds64 bug

Jim Wilson jim.wilson@linaro.org
Mon Dec 12 18:47:00 GMT 2016


The set_flags_for_add64 function is computing carry out wrong.  It may
also be computing overflow wrong.  I replaced it with a copy of the
set_flags_for_sub64 function which is OK, just negating the tests for
value2.  I added a testcase to verify the change.  The testcase fails
without the patch, and works with the patch.

I also verified with a gcc C testsuite run.  The failures drop from
2710 to 2627.

The new testcase requires my previous patch to fix the
aarch64/testutils.inc file.

Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-sim-adds64.patch
Type: text/x-patch
Size: 2222 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20161212/ca31bb45/attachment.bin>


More information about the Gdb-patches mailing list