LOP : Logic Operation

Format

SPA 5.0:
        {@{!}Pg}   LOP.lop{.X}{.pop}   {Pu,} Rd     , {~}Ra, {~}Sb       {&req_6}   {?sched}   ;   
        {@{!}Pg}   LOP.lop{.X}               Rd{.CC}, {~}Ra, {~}Sb       {&req_6}   {?sched}   ;   
        {@{!}Pg}   LOP32I.lop{.X}            Rd{.CC}, {~}Ra, {~}#Imm32   {&req_6}   {?sched}   ;   

 .lop:   logical operation   { .AND, .OR, .XOR, .PASS_B } 
 .pop:   predicate operation { .F*, .T, .Z, .NZ }
 .X   :    Extended precision logical operation


 .CC  :    Write condition codes

LOP allows the following source Sb:
    Sb(register)
    Sb(constant with immediate address)
    Sb(#IMM20)

Description

Logical operation of sources into destination. Sources have an optional 1's complement.

An extended-precision logical operation is performed by processing words in order from least-significant to most-significant. This order is required so that the sign flag will be set correctly based on the msb of the most-significant word. The zero flag is accumulated by LOP.X instructions.

If a predicate destination is specified, result of the predicate operation is written back to destination register.

Examples:

LOP.OR          R0, R1, R2;
LOP.XOR     P3, R0, R1, R2;
LOP32I.AND      R0, R1, 0x12345678;

Back to Index of Instructions