diff options
author | Alan Modra <amodra@gmail.com> | 2023-08-23 08:34:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-08-23 11:03:52 +0930 |
commit | 990f9a1d13e3e6fa9443d23fdd146528d4f21159 (patch) | |
tree | 44aa5f6324a0f61f67c4f851e1bbde6e635208f6 /ar-lib | |
parent | 847fb383d83039b194f68d9e09974a3de4095eb5 (diff) | |
download | binutils-990f9a1d13e3e6fa9443d23fdd146528d4f21159.zip binutils-990f9a1d13e3e6fa9443d23fdd146528d4f21159.tar.gz binutils-990f9a1d13e3e6fa9443d23fdd146528d4f21159.tar.bz2 |
kvx: ubsan: integer overflow
This fixes a few places where ubsan complains about signed integer
overflow when running the testsuite, and that clz(0) is undefined.
When fixing the clz problem, I also noticed that we'd get complaints
if pval is ever LLONG_MIN. Fix that by using unsigned arithmetic.
* config/kvx-parse.c (get_token_class): Avoid signed overflow.
Don't clz(0).
* config/tc-kvx.c (PARALLEL_BIT): Avoid signed overflow.
Diffstat (limited to 'ar-lib')
0 files changed, 0 insertions, 0 deletions