OSDN Git Service

Hexagon (target/hexagon) add F2_sfinvsqrta
authorTaylor Simpson <tsimpson@quicinc.com>
Fri, 9 Apr 2021 01:07:46 +0000 (20:07 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 1 May 2021 15:31:43 +0000 (08:31 -0700)
commitdd8705bdf529d2c694ec3a4d4a2c18bb770d5c6c
treeb7b72776fe3a73f48a400961b2c5e802f961e51f
parentd934c16d8a1e0fb82fd4abfa54dcb5217430577c
Hexagon (target/hexagon) add F2_sfinvsqrta

Rd32,Pe4 = sfinvsqrta(Rs32)
    Square root approx

The helper packs the 2 32-bit results into a 64-bit value,
and the fGEN_TCG override unpacks them into the proper results.

Test cases in tests/tcg/hexagon/multi_result.c
FP exception tests added to tests/tcg/hexagon/fpstuff.c

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <1617930474-31979-19-git-send-email-tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hexagon/arch.c
target/hexagon/arch.h
target/hexagon/gen_tcg.h
target/hexagon/helper.h
target/hexagon/imported/encode_pp.def
target/hexagon/imported/float.idef
target/hexagon/op_helper.c
tests/tcg/hexagon/fpstuff.c
tests/tcg/hexagon/multi_result.c