]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
kvx: gas: fix the detection of negative powers of 2
authorPaul Iannetta <piannetta@kalrayinc.com>
Mon, 4 Sep 2023 13:31:53 +0000 (15:31 +0200)
committerPaul Iannetta <piannetta@kalrayinc.com>
Tue, 20 Feb 2024 11:07:57 +0000 (12:07 +0100)
commit04e46d3bd9a2fff58de16af6b45f387b330bcd88
tree6ea7c1b87baf77e245e8ec39f232727731500010
parentf1efdade946d7dab958c4ecbf5feea9aba01e280
kvx: gas: fix the detection of negative powers of 2

The detection of negative powers of 2 was wrong and could lead to
well-formed bundles ending up taking more syllables than necessary.

gas/ChangeLog:

* config/kvx-parse.c (get_token_class): Use the signed value.
* testsuite/gas/kvx/np2-detection.d: New test.
* testsuite/gas/kvx/np2-detection.s: New test.
gas/config/kvx-parse.c
gas/testsuite/gas/kvx/np2-detection.d [new file with mode: 0644]
gas/testsuite/gas/kvx/np2-detection.s [new file with mode: 0644]