English
Language : 

RM0004 Datasheet, PDF (532/1176 Pages) STMicroelectronics – Programmer’s reference manual for Book E processors
RM0004
Instruction set
evlwhsplatx
SPE APU User
Vector load word into two half words and splat indexed
evlwhsplatx
rD,rA,rB
evlwhsplatx
0
56
000100
10 11
15 16
20 21
31
rD
rA
rB
01100011100
if (rA = 0) then b ← 0
else b ← (rA)
EA ← b + (rB)
rD0:15 ← MEM(EA,2)
rD16:31 ← MEM(EA,2)
rD32:47 ← MEM(EA+2,2)
rD48:63 ← MEM(EA+2,2)
The word addressed by EA is loaded from memory and placed in both the even and odd half
words in each element of rD.
Figure 63 shows how bytes are loaded into rD as determined by the endian mode.
Figure 63. evlwhsplatx results in big- and little-endian modes
Byte address 0 1 2 3
Memory a b c d
GPR in big endian a b a b c d c d
GPR in little endian b a b a d c d c
Implementation note: If the EA is not word aligned, an alignment exception occurs.
532/1176