/sys$common/syshlp/helplib.hlb
MACRO, VAX MACRO Assembler, Vector Instructions, VADDL

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

      Vector Integer Add

    Format:

      vector + vector:

      VVADDL    [/0|1]   Va, Vb, Vc

      scalar + vector:

      VSADDL    [/0|1]   scalar, Vb, Vc

    Architecture

    Format
    vector + vector:   opcode   cntrl.rw

    scalar + vector:   opcode   cntrl.rw, addend.rl
    opcodes

    80FD    VVADDL    Vector Vector Add Longword

    81FD    VSADDL    Vector Scalar Add Longword

    vector_control_word

             1 1 1 1 1
             5 4 3 2 1     8 7     4 3     0
            +-+-+-+-+-------+-------+-------+
            |M|M|E| |  Va   |       |       |
            |O|T|X|0|  or   |  Vb   |  Vc   |
            |E|F|C| |  0    |       |       |
            +-+-+-+-+-------+-------+-------+
    exceptions

       integer overflow

    operation
      FOR i <- 0 TO VLR-1
        IF {{MOE EQL 0} OR {{MOE EQL 1} AND {VMR<i> EQL MTF}}} THEN
          BEGIN
            IF VVADDL THEN
               Vc[i]<31:0> <- Va[i]<31:0> + Vb[i]<31:0>
            IF VSADDL THEN
               Vc[i]<31:0> <- addend + Vb[i]<31:0>
          END
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.