VMS Help
MACRO, VAX MACRO Assembler, Vector Instructions, VBIC, VBIS, and VXOR

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

      Vector Logical Functions

    Format:

      vector op vector:

       { VVBISL }
       { VVXORL }    [/V[0|1]]    Va, Vb, Vc
       { VVBICL }
       {        }

      vector op scalar:

       { VSBISL }
       { VSXORL }    [/V[0|1]]    scalar, Vb, Vc
       { VSBICL }
       {        }

    Architecture

    Format
    vector op vector:   opcode   cntrl.rw

    vector op scalar:   opcode   cntrl.rw, src.rl
    opcodes

    C8FD    VVBISL    Vector Vector Bit Set Longword

    E8FD    VVXORL    Vector Vector Exclusive-OR Longword

    CCFD    VVBICL    Vector Vector Bit Clear Longword

    C9FD    VSBISL    Vector Scalar Bit Set Longword

    E9FD    VSXORL    Vector Scalar Exclusive-OR Longword

    CDFD    VSBICL    Vector Scalar Bit Clear Longword

    vector_control_word

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

       None.

    operation
      FOR i <- 0 TO VLR-1
        IF {{MOE EQL 0} OR {{MOE EQL 1} AND {VMR<i> EQL MTF}}} THEN
          BEGIN
            IF VVBISL THEN
               Vc[i]<31:0> <- Va[i]<31:0> OR Vb[i]<31:0>
            IF VSBISL THEN
               Vc[i]<31:0> <- src OR Vb[i]<31:0>
            IF VVXORL THEN
               Vc[i]<31:0> <- Va[i]<31:0> XOR Vb[i]<31:0>
            IF VSXORL THEN
               Vc[i]<31:0> <- src XOR Vb[i]<31:0>
            IF VVBICL THEN
               Vc[i]<31:0> <- {NOT Va[i]<31:0>} AND Vb[i]<31:0>
            IF VSBICL THEN
               Vc[i]<31:0> <- {NOT src} AND Vb[i]<31:0>
            Vc[i]<63:32> <- Vb[i]<63:32>
          END
  Close     HLB-list     TLB-list     Help  

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