Patent ID: 9600282
Date: 2017-03-21
CPC Classifications: G06F

Claim:
1. A computer implemented method for copying data between a vector register and a memory that is byte addressable, the vector register including a plurality of byte elements 0 to S the method comprising: obtaining, by a processor in a computer, a vector instruction, the processor operating in a current global endian mode and including a machine state register for specifying the current global endian mode setting of the processor, the processor a bi-endian processor configurable to operate in a global endian mode when transferring data between the memory and the vector register, the global endian mode setting selectable by the processor from the group consisting of a big-endian mode and a little-endian mode; determining that the vector instruction is a memory access instruction specifying the vector register, an endian mode, and a memory address; and in response to the determination that the instruction is a memory access instruction, overriding the current global endian mode and executing the memory access instruction by copying byte data between the memory and the vector register so that the byte element n of the vector register corresponds to the memory address+n for n=0 to S.