aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>1999-10-07 06:17:04 +0000
committerDiego Novillo <dnovillo@google.com>1999-10-07 06:17:04 +0000
commitc43185deeb3397b3c6bd887060caae10e36da38c (patch)
tree7e8c6e434e47bd1bab31e1d6b04bef2c95a80818 /gas
parent07147777d3c2d251e3395f52f5236393c15a3d2e (diff)
downloadgdb-c43185deeb3397b3c6bd887060caae10e36da38c.zip
gdb-c43185deeb3397b3c6bd887060caae10e36da38c.tar.gz
gdb-c43185deeb3397b3c6bd887060caae10e36da38c.tar.bz2
Added seven new instructions ld, ld2w, sac, sachi, slae, st and
st2w for d10v. Created new testsuite for d10v to verify new instructions.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-d10v.c17
-rw-r--r--gas/testsuite/ChangeLog7
3 files changed, 25 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4d881de..bcfe7fa 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 7 00:11:50 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
+
+ * config/tc-d10v.c (check_range): Check range for RESTRICTED_NUM3
+ operands.
+
Mon Oct 4 17:24:23 1999 Nick Clifton <nickc@cygnus.com>
Doug Evans <devans@cygnus.com>
diff --git a/gas/config/tc-d10v.c b/gas/config/tc-d10v.c
index 33926fb..7161a6b 100644
--- a/gas/config/tc-d10v.c
+++ b/gas/config/tc-d10v.c
@@ -196,10 +196,19 @@ check_range (num, bits, flags)
if (flags & OPERAND_SIGNED)
{
- max = (1 << (bits - 1))-1;
- min = - (1 << (bits - 1));
- if (((long)num > max) || ((long)num < min))
- retval = 1;
+ /* Signed 3-bit integers are restricted to the (-2, 3) range */
+ if (flags & RESTRICTED_NUM3)
+ {
+ if ((long) num < -2 || (long) num > 3)
+ retval = 1;
+ }
+ else
+ {
+ max = (1 << (bits - 1)) - 1;
+ min = - (1 << (bits - 1));
+ if (((long) num > max) || ((long) num < min))
+ retval = 1;
+ }
}
else
{
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1bc2433..bc63762 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+Thu Oct 7 00:12:04 MDT 1999 Diego Novillo <dnovillo@cygnus.com>
+
+ * gas/d10v: New directory.
+ * gas/d10v/d10.exp: New file.
+ * gas/d10v/inst.s: New file.
+ * gas/d10v/inst.d: New file.
+
Thu Oct 7 12:52:25 1999 Geoffrey Keating <geoffk@cygnus.com>
* gas/mips/elf-rel.s: New file.