On 4/6/21 2:55 PM, Taylor Simpson wrote:
-Original Message-
From: Richard Henderson
Sent: Tuesday, April 6, 2021 3:46 PM
To: Taylor Simpson ; qemu-devel@nongnu.org
Cc: phi...@redhat.com; a...@rev.ng; Brian Cain
Subject: Re: [PATCH v2 12/21] Hexagon (target/hexagon) add F2_sfrecipa
> -Original Message-
> From: Richard Henderson
> Sent: Tuesday, April 6, 2021 3:46 PM
> To: Taylor Simpson ; qemu-devel@nongnu.org
> Cc: phi...@redhat.com; a...@rev.ng; Brian Cain
> Subject: Re: [PATCH v2 12/21] Hexagon (target/hexagon) add F2_sfrecipa
> instructio
On 3/31/21 8:53 PM, Taylor Simpson wrote:
+int arch_recip_lookup(int index)
+{
+index &= 0x7f;
+const uint8_t roundrom[128] = {
+0x0fe, 0x0fa, 0x0f6, 0x0f2, 0x0ef, 0x0eb, 0x0e7, 0x0e4,
+0x0e0, 0x0dd, 0x0d9, 0x0d6, 0x0d2, 0x0cf, 0x0cc, 0x0c9,
+0x0c6, 0x0c2, 0x0bf, 0
On 3/31/21 8:53 PM, Taylor Simpson wrote:
+int arch_recip_lookup(int index)
+{
+index &= 0x7f;
+const uint8_t roundrom[128] = {
static. Otherwise,
Reviewed-by: Richard Henderson
r~
Rd32,Pe4 = sfrecipa(Rs32, Rt32)
Recripocal approx
Test cases in tests/tcg/hexagon/multi_result.c
FP exception tests added to tests/tcg/hexagon/fpstuff.c
Signed-off-by: Taylor Simpson
---
target/hexagon/arch.c | 31 +++--
target/hexagon/arch.h | 1 +