aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-07-26 23:44:37 +0530
committerMike Frysinger <vapier@gentoo.org>2014-08-13 06:58:34 -0400
commited2c4879565a32432f6cbbf7569e0922835475b0 (patch)
treec60fd67fc13c4c7782b00afb9ec772008dc389ad /gas
parentba32981791a749df5e742abbc4bc2f71a3161d6e (diff)
downloadgdb-ed2c4879565a32432f6cbbf7569e0922835475b0.zip
gdb-ed2c4879565a32432f6cbbf7569e0922835475b0.tar.gz
gdb-ed2c4879565a32432f6cbbf7569e0922835475b0.tar.bz2
opcodes: blackfin: do not force align the PC
If the user gives us an unaligned PC, then dump an error as such. Otherwise if you try to disassemble at an odd address, the output will look weird (it'll read one byte earlier). This can be seen in one of the gas tests where data is in the middle of .text, so move the data to .data like it should be in the first place. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/bfin/load.d11
-rw-r--r--gas/testsuite/gas/bfin/load.s1
3 files changed, 8 insertions, 9 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 8bf2121..13dd20d 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-13 Mike Frysinger <vapier@gentoo.org>
+
+ * gas/bfin/load.d: Update output.
+ * gas/bfin/load.s: Add .data section.
+
2014-08-12 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/omit-lock.s: Remove type directive.
diff --git a/gas/testsuite/gas/bfin/load.d b/gas/testsuite/gas/bfin/load.d
index 5d03d8c..2993128 100644
--- a/gas/testsuite/gas/bfin/load.d
+++ b/gas/testsuite/gas/bfin/load.d
@@ -31,7 +31,7 @@ Disassembly of section .text:
54: 36 e1 ff 7f M2 = 0x7fff \(X\);.*
58: 81 60 R1 = 0x10 \(X\);.*
5a: 3c e1 00 00 L0 = 0x0 \(X\);.*
- 5e: 27 e1 f3 00 R7 = 0xf3 \(X\);.*
+ 5e: 27 e1 01 00 R7 = 0x1 \(X\);.*
62: 00 e1 03 00 R0.L = 0x3;.*
66: 01 e1 0f 00 R1.L = 0xf;.*
@@ -106,11 +106,4 @@ Disassembly of section .text:
e8: fb 98 R3 = B\[FP--\] \(X\);
ea: b7 e5 00 00 R7 = B\[SP \+ 0x0\] \(X\);
ee: be e5 01 80 R6 = B\[FP \+ -0x7fff\] \(X\);
-
-000000f2 <load_data1>:
- ...
-
-000000f3 <load_data2>:
- f3: 10 00 IF !CC JUMP 0xf3 <load_data2>;
- f5: 00 00 NOP;
- ...
+ \.\.\.
diff --git a/gas/testsuite/gas/bfin/load.s b/gas/testsuite/gas/bfin/load.s
index 96ae1fa..0b78525 100644
--- a/gas/testsuite/gas/bfin/load.s
+++ b/gas/testsuite/gas/bfin/load.s
@@ -129,6 +129,7 @@ load_byte_sign_extend:
r7 = B [ sp+0] (x);
r6 = b [fp-0x7fff] (X);
+ .data
.global load_data
load_data1: .byte 0
load_data2: .word 16