Subject: Bug in 'gas' for VAX.
To: None <port-vax@sun-lamp.cs.berkeley.edu>
From: Joachim Isaksson <ic@ludd.luth.se>
List: port-vax
Date: 02/28/1994 03:30:35
Working on the locore for NetBSD, we succeeded in finding a bug in gas for
VAX. It wouldn't assemble the branch on bit instructions correctly.
The relevant lines to change are in the architecture file 'vax-opcode.h'.
The lines for the 'bb' instructions are there;
{ "bbs", {"rlabbb", 0xe0 } },
{ "bbc", {"rlabbb", 0xe1 } },
{ "bbss", {"rlabbb", 0xe2 } },
{ "bbcs", {"rlabbb", 0xe3 } },
{ "bbsc", {"rlabbb", 0xe4 } },
{ "bbcc", {"rlabbb", 0xe5 } },
{ "bbssi", {"rlabbb", 0xe6 } },
{ "bbcci", {"rlabbb", 0xe7 } },
...but should really be...
{ "bbs", {"rlvbbb", 0xe0 } },
{ "bbc", {"rlvbbb", 0xe1 } },
{ "bbss", {"rlvbbb", 0xe2 } },
{ "bbcs", {"rlvbbb", 0xe3 } },
{ "bbsc", {"rlvbbb", 0xe4 } },
{ "bbcc", {"rlvbbb", 0xe5 } },
{ "bbssi", {"rlvbbb", 0xe6 } },
{ "bbcci", {"rlvbbb", 0xe7 } },
A bug report for this has been sent to gnu.
Does this bug not being discovered mean the good old art of hand coding vax
assembler is dead? :-)
/ ic
Joachim Isaksson
(ic@luddluth.se)
------------------------------------------------------------------------------