diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-09-19 04:23:57 +0400 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-09-22 17:59:12 +0000 |
commit | b7ee8c6a32987e5039f0a2c2976fad556965727d (patch) | |
tree | a642a35f389837a6141149cb2fd9781fea194deb /target-xtensa/helper.h | |
parent | 0b6df8385d24a4eed0ff546493c59e047b16537b (diff) | |
download | qemu-b7ee8c6a32987e5039f0a2c2976fad556965727d.tar.gz qemu-b7ee8c6a32987e5039f0a2c2976fad556965727d.tar.bz2 qemu-b7ee8c6a32987e5039f0a2c2976fad556965727d.zip |
target-xtensa: implement FP0 conversions
These are FP to integer and integer to FP conversion opcodes.
See ISA, 4.3.10 for more details.
Note that ISA description for utrunc.s is currently incorrect and will
be fixed in future revisions.
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-xtensa/helper.h b/target-xtensa/helper.h index 4e6e4176ee..9557347f1b 100644 --- a/target-xtensa/helper.h +++ b/target-xtensa/helper.h @@ -44,5 +44,9 @@ 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) +DEF_HELPER_FLAGS_3(ftoi, TCG_CALL_CONST | TCG_CALL_PURE, i32, f32, i32, i32) +DEF_HELPER_FLAGS_3(ftoui, TCG_CALL_CONST | TCG_CALL_PURE, i32, f32, i32, i32) +DEF_HELPER_3(itof, f32, env, i32, i32) +DEF_HELPER_3(uitof, f32, env, i32, i32) #include "def-helper.h" |