diff options
author | Richard Henderson <rth@twiddle.net> | 2010-03-19 15:55:40 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-04-10 02:44:31 +0200 |
commit | 735cf45f9c05a5b2a780a0fb2bdb57829193ea5f (patch) | |
tree | 57b41ffcffe4fab2fac0175da6043737c54cb955 /target-alpha/op_helper.c | |
parent | 0c287402a8f2d2417e1327656d849e3b38826748 (diff) |
target-alpha: Implement cvtql inline.
It's a simple mask and shift sequence.
Also, fix a typo in the actual masks used.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-alpha/op_helper.c')
-rw-r--r-- | target-alpha/op_helper.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index 4d2c2ee58e..dd1af849c4 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -1203,26 +1203,6 @@ uint64_t helper_cvtlq (uint64_t a) return (lo & 0x3FFFFFFF) | (hi & 0xc0000000); } -uint64_t helper_cvtql (uint64_t a) -{ - return ((a & 0xC0000000) << 32) | ((a & 0x7FFFFFFF) << 29); -} - -uint64_t helper_cvtql_v (uint64_t a) -{ - if ((int32_t)a != (int64_t)a) - helper_excp(EXCP_ARITH, EXC_M_IOV); - return helper_cvtql(a); -} - -uint64_t helper_cvtql_sv (uint64_t a) -{ - /* ??? I'm pretty sure there's nothing that /sv needs to do that /v - doesn't do. The only thing I can think is that /sv is a valid - instruction merely for completeness in the ISA. */ - return helper_cvtql_v(a); -} - /* PALcode support special instructions */ #if !defined (CONFIG_USER_ONLY) void helper_hw_rei (void) |