diff options
author | WANG Xuerui <git@xen0n.name> | 2022-07-27 19:07:56 +0800 |
---|---|---|
committer | liuzhensong <liuzhensong@loongson.cn> | 2022-08-01 15:57:30 +0800 |
commit | 3f6e97039ec6f476b6fe09768f4b89722ffef10f (patch) | |
tree | 97c69bb06ca8bf8e91da2b3df1bc64921117f8b4 /ld | |
parent | f493c2174ef99a43c0a5d89179122f857955d738 (diff) | |
download | gdb-3f6e97039ec6f476b6fe09768f4b89722ffef10f.zip gdb-3f6e97039ec6f476b6fe09768f4b89722ffef10f.tar.gz gdb-3f6e97039ec6f476b6fe09768f4b89722ffef10f.tar.bz2 |
opcodes: LoongArch: make all non-native jumps desugar to canonical b{lt/ge}[u] forms
Also re-order the jump/branch opcodes while at it, so that insns are
sorted in ascending order according to opcodes, and the label form
preceding the real definition.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-loongarch-elf/jmp_op.d | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ld/testsuite/ld-loongarch-elf/jmp_op.d b/ld/testsuite/ld-loongarch-elf/jmp_op.d index 93452c3..b10390f 100644 --- a/ld/testsuite/ld-loongarch-elf/jmp_op.d +++ b/ld/testsuite/ld-loongarch-elf/jmp_op.d @@ -7,24 +7,24 @@ Disassembly of section .text: 00000000.* <.text>: -[ ]+0:[ ]+03400000[ ]+andi[ ]+\$zero,[ ]+\$zero,[ ]+0x0 -[ ]+4:[ ]+63fffc04[ ]+bgtz[ ]+\$a0,[ ]+-4\(0x3fffc\)[ ]+#[ ]+0x0 -[ ]+8:[ ]+67fff880[ ]+bgez[ ]+\$a0,[ ]+-8\(0x3fff8\)[ ]+#[ ]+0x0 -[ ]+c:[ ]+67fff404[ ]+blez[ ]+\$a0,[ ]+-12\(0x3fff4\)[ ]+#[ ]+0x0 -[ ]+10:[ ]+43fff09f[ ]+beqz[ ]+\$a0,[ ]+-16\(0x7ffff0\)[ ]+#[ ]+0x0 -[ ]+14:[ ]+47ffec9f[ ]+bnez[ ]+\$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