From 33cfa9b6428e10e5d89a50012606ad0a6c461f5e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sun, 30 Apr 1995 04:30:57 +0000 Subject: [PATCH] Avoid "8 byte insn in delay slot" warning message. --- gas/testsuite/gas/arc/j.d | 75 +++++++++++++++++++++++++++++++++++++++++++++++ gas/testsuite/gas/arc/j.s | 45 ++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 gas/testsuite/gas/arc/j.d create mode 100644 gas/testsuite/gas/arc/j.s diff --git a/gas/testsuite/gas/arc/j.d b/gas/testsuite/gas/arc/j.d new file mode 100644 index 0000000..af103f0 --- /dev/null +++ b/gas/testsuite/gas/arc/j.d @@ -0,0 +1,75 @@ +#objdump: -dr +#name: j + +# Test the j insn. + +.*: +file format elf32-.*arc + +Disassembly of section .text: +00000000 38000000 j r0 +00000004 38000020 j.d r0 +00000008 38000040 j.jd r0 +0000000c 38000000 j r0 +00000010 38008000 j r1 +00000014 38008020 j.d r1 +00000018 38008040 j.jd r1 +0000001c 38008000 j r1 +00000020 381f0000 j 0 + RELOC: 00000024 R_ARC_32 .text +00000028 381f0000 j 0 + RELOC: 0000002c R_ARC_32 .text +00000030 381f0000 j 0 + RELOC: 00000034 R_ARC_32 .text +00000038 381f0001 jeq 0 + RELOC: 0000003c R_ARC_32 .text +00000040 381f0001 jeq 0 + RELOC: 00000044 R_ARC_32 .text +00000048 381f0002 jne 0 + RELOC: 0000004c R_ARC_32 .text +00000050 381f0002 jne 0 + RELOC: 00000054 R_ARC_32 .text +00000058 381f0003 jp 0 + RELOC: 0000005c R_ARC_32 .text +00000060 381f0003 jp 0 + RELOC: 00000064 R_ARC_32 .text +00000068 381f0004 jn 0 + RELOC: 0000006c R_ARC_32 .text +00000070 381f0004 jn 0 + RELOC: 00000074 R_ARC_32 .text +00000078 381f0005 jc 0 + RELOC: 0000007c R_ARC_32 .text +00000080 381f0005 jc 0 + RELOC: 00000084 R_ARC_32 .text +00000088 381f0005 jc 0 + RELOC: 0000008c R_ARC_32 .text +00000090 381f0006 jnc 0 + RELOC: 00000094 R_ARC_32 .text +00000098 381f0006 jnc 0 + RELOC: 0000009c R_ARC_32 .text +000000a0 381f0006 jnc 0 + RELOC: 000000a4 R_ARC_32 .text +000000a8 381f0007 jv 0 + RELOC: 000000ac R_ARC_32 .text +000000b0 381f0007 jv 0 + RELOC: 000000b4 R_ARC_32 .text +000000b8 381f0008 jnv 0 + RELOC: 000000bc R_ARC_32 .text +000000c0 381f0008 jnv 0 + RELOC: 000000c4 R_ARC_32 .text +000000c8 381f0009 jgt 0 + RELOC: 000000cc R_ARC_32 .text +000000d0 381f000a jge 0 + RELOC: 000000d4 R_ARC_32 .text +000000d8 381f000b jlt 0 + RELOC: 000000dc R_ARC_32 .text +000000e0 381f000c jle 0 + RELOC: 000000e4 R_ARC_32 .text +000000e8 381f000d jhi 0 + RELOC: 000000ec R_ARC_32 .text +000000f0 381f000e jls 0 + RELOC: 000000f4 R_ARC_32 .text +000000f8 381f000f jpnz 0 + RELOC: 000000fc R_ARC_32 .text +00000100 381f0000 j 0 + RELOC: 00000104 R_ARC_32 external_text_label +00000108 381f0000 j 0 diff --git a/gas/testsuite/gas/arc/j.s b/gas/testsuite/gas/arc/j.s new file mode 100644 index 0000000..0161af2 --- /dev/null +++ b/gas/testsuite/gas/arc/j.s @@ -0,0 +1,45 @@ +# j test + +text_label: + j r0 + j.d r0 + j.jd r0 + j.nd r0 + + j.f [r1] + j.d.f [r1] + j.jd.f [r1] + j.nd.f [r1] + + j text_label + jal text_label + jra text_label + jeq text_label + jz text_label + jne text_label + jnz text_label + jpl text_label + jp text_label + jmi text_label + jn text_label + jcs text_label + jc text_label + jlo text_label + jcc text_label + jnc text_label + jhs text_label + jvs text_label + jv text_label + jvc text_label + jnv text_label + jgt text_label + jge text_label + jlt text_label + jle text_label + jhi text_label + jls text_label + jpnz text_label + + j external_text_label + + j 0 -- 2.7.4