aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>1999-08-20 11:59:19 +0000
committerAlan Modra <amodra@gmail.com>1999-08-20 11:59:19 +0000
commitb23bac360005fe9d367d735a14faed192f6d37c2 (patch)
treebb23cd40a8510d7f6d63be9fdb6382e56da7ea71 /gas/testsuite
parentddda4409ceacecadef5f33c10b6719a04348b514 (diff)
downloadgdb-b23bac360005fe9d367d735a14faed192f6d37c2.zip
gdb-b23bac360005fe9d367d735a14faed192f6d37c2.tar.gz
gdb-b23bac360005fe9d367d735a14faed192f6d37c2.tar.bz2
*gas/config/tc-i386.c: Fix errors in displacement size when
automatically inferring an address prefex.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/general.l15
-rw-r--r--gas/testsuite/gas/i386/general.s8
3 files changed, 24 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 84663de..aa5b761 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1999-08-20 Alan Modra <alan@spri.levels.unisa.edu.au>
+
+ * gas/i386/general.s, gas/i386/general.l: Add .code16gcc
+ displacement checks with auto address prefix.
+
1999-08-17 H.J. Lu <hjl@gnu.org>
* gas/elf/elf.exp: Expected to fail on alpha*-*-*.
diff --git a/gas/testsuite/gas/i386/general.l b/gas/testsuite/gas/i386/general.l
index 68f6600..e07e766 100644
--- a/gas/testsuite/gas/i386/general.l
+++ b/gas/testsuite/gas/i386/general.l
@@ -200,7 +200,14 @@
147 0137 89341D00 000000 mov %esi,\(,%ebx,1\)
148 013e 80250000 00007F andb \$~0x80,foo
149
- 150 # Force a good alignment.
- 151 0145 00000000 00000000[ ]*.p2align 4,0
- 151 000000
-
+ 150 #check 16-bit code auto address prefix
+ 151 .code16gcc
+ 152 0145 67668D95 00FFFFFF leal -256\(%ebp\),%edx
+ 153 014d 6788857F FFFFFF mov %al,-129\(%ebp\)
+ 154 0154 67886580 mov %ah,-128\(%ebp\)
+ 155 0158 67668D9D 20F9FFFF leal -1760\(%ebp\),%ebx
+ 156 0160 67668984 248C0000 movl %eax,140\(%esp\)
+ 156 00
+ 157
+ 158 # Force a good alignment.
+ 159 0169 00000000 000000[ ]*.p2align 4,0
diff --git a/gas/testsuite/gas/i386/general.s b/gas/testsuite/gas/i386/general.s
index cbe0373..b96b68d 100644
--- a/gas/testsuite/gas/i386/general.s
+++ b/gas/testsuite/gas/i386/general.s
@@ -147,5 +147,13 @@
mov %esi,(,%ebx,1)
andb $~0x80,foo
+#check 16-bit code auto address prefix
+.code16gcc
+ leal -256(%ebp),%edx
+ mov %al,-129(%ebp)
+ mov %ah,-128(%ebp)
+ leal -1760(%ebp),%ebx
+ movl %eax,140(%esp)
+
# Force a good alignment.
.p2align 4,0