summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Vieira <andre.simoesdiasvieira@arm.com>2018-11-23 17:10:53 +0000
committerAndre Vieira <andre.simoesdiasvieira@arm.com>2018-11-23 17:10:53 +0000
commit06a3cd06d4d1a2efe4d6a14204e1e5653bab41db (patch)
tree329ae31ed3ca08dfcbfdc1e6fa98d8523ea8386f
parentgdbserver: AArch64: Remove cannot_fetch/store_register (diff)
downloadbinutils-gdb-06a3cd06d4d1a2efe4d6a14204e1e5653bab41db.tar.gz
binutils-gdb-06a3cd06d4d1a2efe4d6a14204e1e5653bab41db.tar.bz2
binutils-gdb-06a3cd06d4d1a2efe4d6a14204e1e5653bab41db.tar.xz
[GAS][ARM] Fix testism for bl local v4t test
gas/ChangeLog 2018-11-23 Andre Vieira <andre.simoesdiasvieira@arm.com> * testsuite/gas/arm/bl-local-v4t.d: Remove warning check. * testsuite/gas/arm/blx-local-thumb.s: New. * testsuite/gas/arm/blx-local-thumb.d: New.
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/testsuite/gas/arm/bl-local-v4t.d1
-rw-r--r--gas/testsuite/gas/arm/blx-local-thumb.d24
-rw-r--r--gas/testsuite/gas/arm/blx-local-thumb.s30
4 files changed, 61 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1c99079..4b02996 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
12018-11-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
2
3 * testsuite/gas/arm/bl-local-v4t.d: Remove
4 warning check.
5 * testsuite/gas/arm/blx-local-thumb.s: New.
6 * testsuite/gas/arm/blx-local-thumb.d: New.
7
12018-11-21 John Darrington <john@darrington.wattle.id.au> 82018-11-21 John Darrington <john@darrington.wattle.id.au>
2 9
3 * testsuite/gas/s12z/shift.s: Add new test case. 10 * testsuite/gas/s12z/shift.s: Add new test case.
diff --git a/gas/testsuite/gas/arm/bl-local-v4t.d b/gas/testsuite/gas/arm/bl-local-v4t.d
index 2985cee..cf68093 100644
--- a/gas/testsuite/gas/arm/bl-local-v4t.d
+++ b/gas/testsuite/gas/arm/bl-local-v4t.d
@@ -2,7 +2,6 @@
2#objdump: -drw --prefix-addresses --show-raw-insn 2#objdump: -drw --prefix-addresses --show-raw-insn
3#target: *-*-*eabi* *-*-nacl* 3#target: *-*-*eabi* *-*-nacl*
4#as: 4#as:
5#warning_output: blx-local-thumb.l
6 5
7.*: +file format .*arm.* 6.*: +file format .*arm.*
8Disassembly of section .text: 7Disassembly of section .text:
diff --git a/gas/testsuite/gas/arm/blx-local-thumb.d b/gas/testsuite/gas/arm/blx-local-thumb.d
new file mode 100644
index 0000000..a0a2c04
--- /dev/null
+++ b/gas/testsuite/gas/arm/blx-local-thumb.d
@@ -0,0 +1,24 @@
1#name: Local BLX instructions in Thumb mode.
2#objdump: -drw --prefix-addresses --show-raw-insn
3#skip: *-*-pe *-*-wince
4#as:
5#warning_output: blx-local-thumb.l
6
7.*: +file format .*arm.*
8Disassembly of section .text:
9[^<]*<one> f000 f80e bl 00000020 <foo>
10[^<]*<one\+0x4> f000 e812 blx 0000002c <foo2>
11[^<]*<one\+0x8> f000 f80a bl 00000020 <foo>
12[^<]*<one\+0xc> f000 e80e blx 0000002c <foo2>
13[^<]*<one\+0x10> f000 e80e blx 00000030 <fooundefarm>
14[^<]*<one\+0x14> f000 f80c bl 00000030 <fooundefarm>
15[^<]*<one\+0x18> f000 e806 blx 00000028 <fooundefthumb>
16[^<]*<one\+0x1c> f000 f804 bl 00000028 <fooundefthumb>
17[^<]*<foo> e7ee b.n 00000000 <one>
18[^<]*<foo\+0x2> e003 b.n 0000002c <foo2>
19[^<]*<foo\+0x4> 46c0 nop ; \(mov r8, r8\)
20[^<]*<foo\+0x6> 46c0 nop ; \(mov r8, r8\)
21[^<]*<fooundefthumb> 46c0 nop ; \(mov r8, r8\)
22 ...
23[^<]*<foo2> e1a00000 nop ; \(mov r0, r0\)
24[^<]*<fooundefarm> e1a00000 nop ; \(mov r0, r0\)
diff --git a/gas/testsuite/gas/arm/blx-local-thumb.s b/gas/testsuite/gas/arm/blx-local-thumb.s
new file mode 100644
index 0000000..504aa96
--- /dev/null
+++ b/gas/testsuite/gas/arm/blx-local-thumb.s
@@ -0,0 +1,30 @@
1 .text
2 .arch armv5t
3 .syntax unified
4 .thumb
5one:
6 blx foo @ bl foo
7 blx foo2 @ blx foo2
8 bl foo @ bl foo
9 bl foo2 @ blx foo2
10 blx fooundefarm
11 bl fooundefarm
12 blx fooundefthumb
13 bl fooundefthumb
14 .thumb
15 .type foo, %function
16 .thumb_func
17foo:
18 b one @no relocs
19 b foo2 @ THUMB_PCREL_JUMP
20 nop
21 nop
22fooundefthumb:
23 nop
24 .type foo2, %function
25 .arm
26 .align 2
27foo2:
28 nop
29fooundefarm:
30 nop