target-ppc: add lxvh8x instruction
commit1c0744190ca69732da13d49f6cb48e648dff9a40
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Wed, 28 Sep 2016 18:41:57 +0000 (29 00:11 +0530)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 5 Oct 2016 00:05:28 +0000 (5 11:05 +1100)
tree4a24b06cc4e1e7f2f72d27b3a1a0f4c66cff34c2
parent0aec21d8fa1be9a2b57b0e018b36ba566508d21c
target-ppc: add lxvh8x instruction

lxvh8x:  Load VSX Vector Halfword*8

Big-Endian Storage
+-------+-------+-------+-------+-------+-------+-------+-------+
| 00 01 | 10 11 | 20 21 | 30 31 | 40 41 | 50 51 | 60 61 | 70 71 |
+-------+-------+-------+-------+-------+-------+-------+-------+

Little-Endian Storage
+-------+-------+-------+-------+-------+-------+-------+-------+
| 01 00 | 11 10 | 21 20 | 31 30 | 41 40 | 51 50 | 61 60 | 71 70 |
+-------+-------+-------+-------+-------+-------+-------+-------+

Vector load results in (16-bit elements):
+------+------+------+------+------+------+------+------+
| 0001 | 1011 | 2021 | 3031 | 4041 | 5051 | 6061 | 7071 |
+------+------+------+------+------+------+------+------+

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
[dwg: Tweak to commit description]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/translate/vsx-impl.inc.c
target-ppc/translate/vsx-ops.inc.c