]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Emulate floating-point branch instructions
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 30 Apr 2025 07:10:15 +0000 (15:10 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Sat, 10 May 2025 13:25:52 +0000 (21:25 +0800)
commit7593801b17f7ef9e8260025a6db73df4ce008c49
treec5faef9befc9d952773a6275304c0e0475119c3c
parente264ce6ff0f00798fe7ab6cc21eca0fedf62cc34
gdb: LoongArch: Emulate floating-point branch instructions

Add bceqz and bcnez cases in loongarch_insn_is_cond_branch() and
loongarch_next_pc() to emulate floating-point branch instructions.

Here are the references:

https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_bceqz_bcnez
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#table-table-of-instruction-encoding

Approved-by: Kevin Buettner <kevinb@redhat.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-tdep.c