On 05/30/2015 02:17 PM, Chen Gang wrote:
+for (count = 0; count 8; count++) {
+sel = (rsrcb (count * 8)) 0xf;
+if (sel 8) {
+vdst |= ((rdst (8 * sel)) 0xff) (count * 8);
+} else {
+vdst |= ((rsrc (8 * (8 - sel))) 0xff) (count *
On 6/2/15 00:02, Richard Henderson wrote:
On 05/30/2015 02:17 PM, Chen Gang wrote:
+for (count = 0; count 8; count++) {
+sel = (rsrcb (count * 8)) 0xf;
+if (sel 8) {
+vdst |= ((rdst (8 * sel)) 0xff) (count * 8);
+} else {
+vdst |=
The related instructions are exception, cntlz, cnttz, and shufflebytes.
Signed-off-by: Chen Gang gang.chen.5...@gmail.com
---
target-tilegx/helper.c | 73 ++
target-tilegx/helper.h | 4 +++
2 files changed, 77 insertions(+)
create mode 100644