Fix bug with cmn/adds where C flag was incorrectly set.
authorJim Wilson <jim.wilson@linaro.org>
Sun, 26 Mar 2017 03:32:02 +0000 (20:32 -0700)
committerJim Wilson <jim.wilson@linaro.org>
Sun, 26 Mar 2017 03:32:02 +0000 (20:32 -0700)
commitf124168208a5927e9f1b9843094ec2bf2aad2edf
treeae49c47619cae3ca06b5f7d5dc82c36d29f9a281
parent7ed687b257a4182771079c582887498d0a98810c
Fix bug with cmn/adds where C flag was incorrectly set.

sim/aarch64/
* simulator.c (set_flags_for_add32): Cast result to uint32_t in carry
flag check.

sim/testsuite/sim/aarch64/
* adds.s: Add checks for values -2 and 1, where C is not set.
sim/aarch64/ChangeLog
sim/aarch64/simulator.c
sim/testsuite/sim/aarch64/ChangeLog
sim/testsuite/sim/aarch64/adds.s