diff options
author | Lulu Cai <cailulu@loongson.cn> | 2025-04-02 10:23:40 +0800 |
---|---|---|
committer | cailulu <cailulu@loongson.cn> | 2025-04-08 10:05:51 +0800 |
commit | 4fe96ddaf6140de99ad8a046de3989478c443d03 (patch) | |
tree | 3bc5242d9f9286517bda7a485be0f4a1664c75a6 /gdb/callback.c | |
parent | 6a51b5955a076995099eadffd70d4ff00bcd6d5a (diff) | |
download | binutils-4fe96ddaf6140de99ad8a046de3989478c443d03.zip binutils-4fe96ddaf6140de99ad8a046de3989478c443d03.tar.gz binutils-4fe96ddaf6140de99ad8a046de3989478c443d03.tar.bz2 |
LoongArch: Warn about right shifts of negative numbers
The GNU Assembler User Guide says that the right shift operator ">>"
in an expression is the same as the C operator.
On LoongArch the assembler directives and instructions do not treat
negative numbers ">>" the same way. The directives treats negative
numbers ">>" as logical right shifts while the instructions treats them
as arithmetic right shifts.
The right shift of negative numbers in the instructions may be changed
from an arithmetic right shift to a logical right shift in the future,
and a warning is issued for this.
Diffstat (limited to 'gdb/callback.c')
0 files changed, 0 insertions, 0 deletions