From ae1372461b7605766aa4a7fe0291eab97ad54149 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Fri, 2 Dec 2016 13:57:17 -0600 Subject: [PATCH] Fix issue #14, Wrong result value text for VEC_INSERT4B Signed-off-by: Bill Schmidt --- specification/app_a.xml | 7 +++---- specification/ch_6.xml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/specification/app_a.xml b/specification/app_a.xml index 14bc98e..e97926e 100644 --- a/specification/app_a.xml +++ b/specification/app_a.xml @@ -3806,10 +3806,9 @@ xml:id="dbdoclet.50655245_pgfId-1138128"> Purpose: Inserts a word into a vector at a byte position. Result value: - The first doubleword element of the result contains the - zero-extended extracted word from ARG1. The second doubleword is - set to 0. ARG2 specifies the least-significant byte (0–12) of - the extracted word. + Let W be the first doubleword element of ARG1, truncated + to 32 bits. The result vector is formed by inserting W into + ARG2 at the byte position (0–12) specified by ARG3. diff --git a/specification/ch_6.xml b/specification/ch_6.xml index 18dcfdc..434d471 100644 --- a/specification/ch_6.xml +++ b/specification/ch_6.xml @@ -361,7 +361,7 @@ register vector double vd = vec_splats(*double_ptr); For LE, subtract the byte position from 12, and swap the - halves of ARG2. + halves of ARG1.