From: Alice Carlotti Date: Sun, 20 Apr 2025 22:11:04 +0000 (+0100) Subject: aarch64: Add new test branch-cond-pseudos.d X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a240a27f3aab64a4a611817b0d03f8798feb52d8;p=thirdparty%2Fbinutils-gdb.git aarch64: Add new test branch-cond-pseudos.d beq, bne, bcs and bcc were already tested, and bge and ble are also used in scfi tests. --- diff --git a/gas/testsuite/gas/aarch64/branch-cond-pseudos.d b/gas/testsuite/gas/aarch64/branch-cond-pseudos.d new file mode 100644 index 00000000000..92a7592ee91 --- /dev/null +++ b/gas/testsuite/gas/aarch64/branch-cond-pseudos.d @@ -0,0 +1,41 @@ +#as: -march=armv8-a +#objdump: -dr + +.*: file format .* + + +Disassembly of section \.text: + +0+ <\.text>: + *[0-9a-f]+: 54000000 b.eq 0 \<\.text\> // b\.none + *[0-9a-f]+: 54ffffe0 b.eq 0 \<\.text\> // b\.none + *[0-9a-f]+: 54000001 b.ne 8 \<\.text\+0x8\> // b\.any + *[0-9a-f]+: 54ffffe1 b.ne 8 \<\.text\+0x8\> // b\.any + *[0-9a-f]+: 54000002 b.cs 10 \<\.text\+0x10\> // b\.hs, b\.nlast + *[0-9a-f]+: 54ffffe2 b.cs 10 \<\.text\+0x10\> // b\.hs, b\.nlast + *[0-9a-f]+: 54000002 b.cs 18 \<\.text\+0x18\> // b\.hs, b\.nlast + *[0-9a-f]+: 54ffffe2 b.cs 18 \<\.text\+0x18\> // b\.hs, b\.nlast + *[0-9a-f]+: 54000003 b.cc 20 \<\.text\+0x20\> // b\.lo, b\.ul, b\.last + *[0-9a-f]+: 54ffffe3 b.cc 20 \<\.text\+0x20\> // b\.lo, b\.ul, b\.last + *[0-9a-f]+: 54000003 b.cc 28 \<\.text\+0x28\> // b\.lo, b\.ul, b\.last + *[0-9a-f]+: 54ffffe3 b.cc 28 \<\.text\+0x28\> // b\.lo, b\.ul, b\.last + *[0-9a-f]+: 54000004 b.mi 30 \<\.text\+0x30\> // b\.first + *[0-9a-f]+: 54ffffe4 b.mi 30 \<\.text\+0x30\> // b\.first + *[0-9a-f]+: 54000005 b.pl 38 \<\.text\+0x38\> // b\.nfrst + *[0-9a-f]+: 54ffffe5 b.pl 38 \<\.text\+0x38\> // b\.nfrst + *[0-9a-f]+: 54000006 b.vs 40 \<\.text\+0x40\> + *[0-9a-f]+: 54ffffe6 b.vs 40 \<\.text\+0x40\> + *[0-9a-f]+: 54000007 b.vc 48 \<\.text\+0x48\> + *[0-9a-f]+: 54ffffe7 b.vc 48 \<\.text\+0x48\> + *[0-9a-f]+: 54000008 b.hi 50 \<\.text\+0x50\> // b\.pmore + *[0-9a-f]+: 54ffffe8 b.hi 50 \<\.text\+0x50\> // b\.pmore + *[0-9a-f]+: 54000009 b.ls 58 \<\.text\+0x58\> // b\.plast + *[0-9a-f]+: 54ffffe9 b.ls 58 \<\.text\+0x58\> // b\.plast + *[0-9a-f]+: 5400000a b.ge 60 \<\.text\+0x60\> // b\.tcont + *[0-9a-f]+: 54ffffea b.ge 60 \<\.text\+0x60\> // b\.tcont + *[0-9a-f]+: 5400000b b.lt 68 \<\.text\+0x68\> // b\.tstop + *[0-9a-f]+: 54ffffeb b.lt 68 \<\.text\+0x68\> // b\.tstop + *[0-9a-f]+: 5400000c b.gt 70 \<\.text\+0x70\> + *[0-9a-f]+: 54ffffec b.gt 70 \<\.text\+0x70\> + *[0-9a-f]+: 5400000d b.le 78 \<\.text\+0x78\> + *[0-9a-f]+: 54ffffed b.le 78 \<\.text\+0x78\> diff --git a/gas/testsuite/gas/aarch64/branch-cond-pseudos.s b/gas/testsuite/gas/aarch64/branch-cond-pseudos.s new file mode 100644 index 00000000000..381ce8eddad --- /dev/null +++ b/gas/testsuite/gas/aarch64/branch-cond-pseudos.s @@ -0,0 +1,32 @@ +1: beq 1b + beq 1b +2: bne 2b + bne 2b +3: bcs 3b + bcs 3b +4: bhs 4b + bhs 4b +5: bcc 5b + bcc 5b +6: blo 6b + blo 6b +7: bmi 7b + bmi 7b +8: bpl 8b + bpl 8b +9: bvs 9b + bvs 9b +10: bvc 10b + bvc 10b +11: bhi 11b + bhi 11b +12: bls 12b + bls 12b +13: bge 13b + bge 13b +14: blt 14b + blt 14b +15: bgt 15b + bgt 15b +16: ble 16b + ble 16b