From e6d7eb499e4f212a8aa3be33f11d8e0d05c3964a Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 8 Apr 1995 20:33:35 +0000 Subject: [PATCH] Testcases for b, bl, and lp insns. --- gas/testsuite/gas/arc/.Sanitize | 2 ++ gas/testsuite/gas/arc/branch.d | 45 +++++++++++++++++++++++++++++++ gas/testsuite/gas/arc/branch.s | 47 +++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 gas/testsuite/gas/arc/branch.d create mode 100644 gas/testsuite/gas/arc/branch.s diff --git a/gas/testsuite/gas/arc/.Sanitize b/gas/testsuite/gas/arc/.Sanitize index 4a041693881..87250759577 100644 --- a/gas/testsuite/gas/arc/.Sanitize +++ b/gas/testsuite/gas/arc/.Sanitize @@ -25,6 +25,8 @@ Do-first: Things-to-keep: arc.exp +branch.s +branch.d flag.s flag.d j.s diff --git a/gas/testsuite/gas/arc/branch.d b/gas/testsuite/gas/arc/branch.d new file mode 100644 index 00000000000..4c9b014b1ba --- /dev/null +++ b/gas/testsuite/gas/arc/branch.d @@ -0,0 +1,45 @@ +#objdump: -dr +#name: @OC@ + +# Test the @OC@ insn. + +.*: +file format elf32-.*arc + +Disassembly of section .text: +00000000 @IC+7@ffff80 @OC@ 00000000 +00000004 @IC+7@ffff00 @OC@ 00000000 +00000008 @IC+7@fffe80 @OC@ 00000000 +0000000c @IC+7@fffe01 @OC@eq 00000000 +00000010 @IC+7@fffd81 @OC@eq 00000000 +00000014 @IC+7@fffd02 @OC@ne 00000000 +00000018 @IC+7@fffc82 @OC@ne 00000000 +0000001c @IC+7@fffc03 @OC@p 00000000 +00000020 @IC+7@fffb83 @OC@p 00000000 +00000024 @IC+7@fffb04 @OC@n 00000000 +00000028 @IC+7@fffa84 @OC@n 00000000 +0000002c @IC+7@fffa05 @OC@c 00000000 +00000030 @IC+7@fff985 @OC@c 00000000 +00000034 @IC+7@fff905 @OC@c 00000000 +00000038 @IC+7@fff886 @OC@nc 00000000 +0000003c @IC+7@fff806 @OC@nc 00000000 +00000040 @IC+7@fff786 @OC@nc 00000000 +00000044 @IC+7@fff707 @OC@v 00000000 +00000048 @IC+7@fff687 @OC@v 00000000 +0000004c @IC+7@fff608 @OC@nv 00000000 +00000050 @IC+7@fff588 @OC@nv 00000000 +00000054 @IC+7@fff509 @OC@gt 00000000 +00000058 @IC+7@fff48a @OC@ge 00000000 +0000005c @IC+7@fff40b @OC@lt 00000000 +00000060 @IC+7@fff38c @OC@le 00000000 +00000064 @IC+7@fff30d @OC@hi 00000000 +00000068 @IC+7@fff28e @OC@ls 00000000 +0000006c @IC+7@fff20f @OC@pnz 00000000 +00000070 @IC+7@ffff80 @OC@ 00000070 + RELOC: 00000070 R_ARC_B22_PCREL external_text_label +00000074 @IC+0@000000 @OC@ 00000078 +00000078 @IC+7@fff0a0 @OC@.d 00000000 +0000007c @IC+7@fff000 @OC@ 00000000 +00000080 @IC+7@ffefc0 @OC@.jd 00000000 +00000084 @IC+7@ffef21 @OC@eq.d 00000000 +00000088 @IC+7@ffee82 @OC@ne 00000000 +0000008c @IC+7@ffee46 @OC@nc.jd 00000000 diff --git a/gas/testsuite/gas/arc/branch.s b/gas/testsuite/gas/arc/branch.s new file mode 100644 index 00000000000..8bf1618ffc4 --- /dev/null +++ b/gas/testsuite/gas/arc/branch.s @@ -0,0 +1,47 @@ +# @OC@ test + +text_label: + +# Condition tests + @OC@ text_label + @OC@al text_label + @OC@ra text_label + @OC@eq text_label + @OC@z text_label + @OC@ne text_label + @OC@nz text_label + @OC@pl text_label + @OC@p text_label + @OC@mi text_label + @OC@n text_label + @OC@cs text_label + @OC@c text_label + @OC@lo text_label + @OC@cc text_label + @OC@nc text_label + @OC@hs text_label + @OC@vs text_label + @OC@v text_label + @OC@vc text_label + @OC@nv text_label + @OC@gt text_label + @OC@ge text_label + @OC@lt text_label + @OC@le text_label + @OC@hi text_label + @OC@ls text_label + @OC@pnz text_label + + @OC@ external_text_label + + @OC@ 0 + +# Delay slots + @OC@.d text_label + @OC@.nd text_label + @OC@.jd text_label + +# Condition tests and delay slots + @OC@eq.d text_label + @OC@ne.nd text_label + @OC@cc.jd text_label -- 2.30.2