target-tilegx: Handle most bit manipulation instructions

The crc instructions are omitted from this set.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Richard Henderson 2015-08-20 21:30:51 -07:00
parent 42fedbca8f
commit 7f41a8d672
3 changed files with 79 additions and 1 deletions

View file

@ -40,6 +40,16 @@ uint64_t helper_cnttz(uint64_t arg)
return ctz64(arg);
}
uint64_t helper_pcnt(uint64_t arg)
{
return ctpop64(arg);
}
uint64_t helper_revbits(uint64_t arg)
{
return revbit64(arg);
}
/*
* Functional Description
* uint64_t a = rf[SrcA];