VMS Help
MACRO, VAX MACRO Assembler, Vector Instructions, VCMPL

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

      Vector Integer Compare

    Format:

      vector - vector:

       { VVGTRL }
       { VVEQLL }
       { VVLSSL }
       {        }   [/0|1]   Va, Vb
       { VVLEQL }
       { VVNEQL }
       { VVGEQL }
       {        }

      scalar - vector:

       { VSGTRL }
       { VSEQLL }
       { VSLSSL }
       {        }   [/0|1]   src, Vb
       { VSLEQL }
       { VSNEQL }
       { VSGEQL }
       {        }

    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.