When objdump is specified with a stop address that ends up in the middle
of an instruction, the partial instruction is expected to be displayed.
These three tests check that the partial instruction is correctly
displayed when there are 1, 2, or 3 bytes of the instruction dumped.
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
--- /dev/null
+#as:
+#source: dis-partial-insn.s
+#objdump: --start-address 0 --stop-address 1 -d
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+0:[ ]+13[ ]+.byte[ ]+0x13
--- /dev/null
+#as:
+#source: dis-partial-insn.s
+#objdump: --start-address 0 --stop-address 2 -d
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+0:[ ]+0013[ ]+.short[ ]+0x0013
--- /dev/null
+#as:
+#source: dis-partial-insn.s
+#objdump: --start-address 0 --stop-address 3 -d
+
+.*:[ ]+file format .*
+
+
+Disassembly of section .text:
+
+0+000 <target>:
+[ ]+0:[ ]+000013[ ]+.word[ ]+0x000013
--- /dev/null
+target:
+ nop