summaryrefslogtreecommitdiff
path: root/target-xtensa/helper.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-09-19 04:23:56 +0400
committerBlue Swirl <blauwirbel@gmail.com>2012-09-22 17:59:12 +0000
commit0b6df8385d24a4eed0ff546493c59e047b16537b (patch)
tree2be0573070d7cadc07d62bb61b16b92a8d56043f /target-xtensa/helper.h
parent9ed7ae12afacdd234a749aa5af27dd93ea1594ec (diff)
downloadqemu-0b6df8385d24a4eed0ff546493c59e047b16537b.tar.gz
target-xtensa: implement FP0 arithmetic
These are FP arithmetic opcodes. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-xtensa/helper.h')
-rw-r--r--target-xtensa/helper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-xtensa/helper.h b/target-xtensa/helper.h
index 1662552c8e..4e6e4176ee 100644
--- a/target-xtensa/helper.h
+++ b/target-xtensa/helper.h
@@ -37,5 +37,12 @@ DEF_HELPER_3(wsr_dbreaka, void, env, i32, i32)
DEF_HELPER_3(wsr_dbreakc, void, env, i32, i32)
DEF_HELPER_2(wur_fcr, void, env, i32)
+DEF_HELPER_FLAGS_1(abs_s, TCG_CALL_CONST | TCG_CALL_PURE, f32, f32)
+DEF_HELPER_FLAGS_1(neg_s, TCG_CALL_CONST | TCG_CALL_PURE, f32, f32)
+DEF_HELPER_3(add_s, f32, env, f32, f32)
+DEF_HELPER_3(sub_s, f32, env, f32, f32)
+DEF_HELPER_3(mul_s, f32, env, f32, f32)
+DEF_HELPER_4(madd_s, f32, env, f32, f32, f32)
+DEF_HELPER_4(msub_s, f32, env, f32, f32, f32)
#include "def-helper.h"