aboutsummaryrefslogtreecommitdiff
path: root/target/xtensa/helper.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-03-14 11:13:53 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2020-08-21 12:48:15 -0700
commitf8c613701637ebfbf75570153715af3ac7aeca9d (patch)
tree2daf1e3b5bd4aa9c65a12b58eb98cdc1b575e3ab /target/xtensa/helper.h
parentcfa9f0518144c0ea30f51fd2f203a09dd0a40cd9 (diff)
target/xtensa: implement FPU division and square root
This does not implement all opcodes related to div/sqrt as specified in the xtensa ISA, partly because the official specification is not complete and partly because precise implementation is unnecessarily complex. Instead instructions specific to the div/sqrt sequences are implemented differently, most of them as nops, but the results of div/sqrt sequences is preserved. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/helper.h')
-rw-r--r--target/xtensa/helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/xtensa/helper.h b/target/xtensa/helper.h
index 095f754671..ae938ceedb 100644
--- a/target/xtensa/helper.h
+++ b/target/xtensa/helper.h
@@ -83,6 +83,10 @@ DEF_HELPER_4(madd_d, f64, env, f64, f64, f64)
DEF_HELPER_4(madd_s, f32, env, f32, f32, f32)
DEF_HELPER_4(msub_d, f64, env, f64, f64, f64)
DEF_HELPER_4(msub_s, f32, env, f32, f32, f32)
+DEF_HELPER_3(mkdadj_d, f64, env, f64, f64)
+DEF_HELPER_3(mkdadj_s, f32, env, f32, f32)
+DEF_HELPER_2(mksadj_d, f64, env, f64)
+DEF_HELPER_2(mksadj_s, f32, env, f32)
DEF_HELPER_4(ftoi_d, i32, env, f64, i32, i32)
DEF_HELPER_4(ftoui_d, i32, env, f64, i32, i32)
DEF_HELPER_3(itof_d, f64, env, i32, i32)