xxsetaccz

VSX Set Accumulator to Zero

xxsetaccz AT

Clears a 512-bit Accumulator register (composed of 4 VSRs) to zero.

Details

The VSX Set Accumulator to Zero instruction sets all elements of the specified accumulator (ACC[AT]) to zero.

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
ACC[AT][0] ←0x0000_0000_0000_0000_0000_0000_0000_0000
ACC[AT][1] ←0x0000_0000_0000_0000_0000_0000_0000_0000
ACC[AT][2] ←0x0000_0000_0000_0000_0000_0000_0000_0000
ACC[AT][3] ←0x0000_0000_0000_00

Programming Note

This instruction zeroes out all elements of the specified VSX accumulator. Ensure that VSX is enabled in the MSR register before using this instruction; otherwise, a VSX_Unavailable exception will be raised. This operation is useful for initializing accumulators or resetting them between operations.

Example

xxsetaccz acc0

Encoding

Binary Layout
31
0
/
6
/
11
AT
16
185
21
/
31
 
Format X-form
Opcode 0x7C000171
Extension MMA
Registers Altered MSR

Operands

  • AT
    Accumulator (0-7)