[PATCH] fix for aarch64 sim tbnz bug

Jim Wilson jim.wilson@linaro.org
Fri Dec 2 04:49:00 GMT 2016


Debugged another gcc testsuite failure, and found that tbnz/tbz are
broken when the bit position to test is greater than 31.  There are
two problems.  The high bit of the bit position is shifted left by the
wrong amount.  And we need to use (uint64_t)1 to get a 64-bit shift
result.

Tested with a gcc C testsuite run.  This reduces failures from 2856 to 2710.

Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-sim-tbnz.patch
Type: text/x-patch
Size: 1367 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20161202/96597fa0/attachment.bin>


More information about the Gdb-patches mailing list