mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target-ppc : Allow fc[tf]id[*] mnemonics for non TARGET_PPC64
This patch remove limitation for fc[tf]id[*] on 32 bits targets and add a new insn flag for signed integer 64 conversion PPC2_FP_CVT_S64 Signed-off-by: Pierre Mallard <mallard.pierre@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
9ac58dc59a
commit
4171853cf4
5 changed files with 16 additions and 22 deletions
|
@ -649,14 +649,10 @@ FPU_FCTI(fctiw, int32, 0x80000000U)
|
|||
FPU_FCTI(fctiwz, int32_round_to_zero, 0x80000000U)
|
||||
FPU_FCTI(fctiwu, uint32, 0x00000000U)
|
||||
FPU_FCTI(fctiwuz, uint32_round_to_zero, 0x00000000U)
|
||||
#if defined(TARGET_PPC64)
|
||||
FPU_FCTI(fctid, int64, 0x8000000000000000ULL)
|
||||
FPU_FCTI(fctidz, int64_round_to_zero, 0x8000000000000000ULL)
|
||||
FPU_FCTI(fctidu, uint64, 0x0000000000000000ULL)
|
||||
FPU_FCTI(fctiduz, uint64_round_to_zero, 0x0000000000000000ULL)
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_PPC64)
|
||||
|
||||
#define FPU_FCFI(op, cvtr, is_single) \
|
||||
uint64_t helper_##op(CPUPPCState *env, uint64_t arg) \
|
||||
|
@ -678,8 +674,6 @@ FPU_FCFI(fcfids, int64_to_float32, 1)
|
|||
FPU_FCFI(fcfidu, uint64_to_float64, 0)
|
||||
FPU_FCFI(fcfidus, uint64_to_float32, 1)
|
||||
|
||||
#endif
|
||||
|
||||
static inline uint64_t do_fri(CPUPPCState *env, uint64_t arg,
|
||||
int rounding_mode)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue