qemu-patch-raspberry4/target/arm
Richard Henderson 88808a022c target/arm: Fix float16 to/from int16
The instruction "ucvtf v0.4h, v04h, #2", with input 0x8000u,
overflows the intermediate float16 to infinity before we have a
chance to scale the output.  Use float64 as the intermediate type
so that no input argument (uint32_t in this case) can overflow
or round before scaling.  Given the declared argument, the signed
int32_t function has the same problem.

When converting from float16 to integer, using u/int32_t instead
of u/int16_t means that the bounding is incorrect.

Cc: qemu-stable@nongnu.org
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180502221552.3873-4-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-05-10 18:10:58 +01:00
..
arch_dump.c
arm-powerctl.c
arm-powerctl.h
arm-semi.c
arm_ldst.h
cpu-qom.h target/arm: Add "-cpu max" support 2018-03-09 17:09:44 +00:00
cpu.c target/arm: Add pre-EL change hooks 2018-04-26 11:04:39 +01:00
cpu.h target/arm: Introduce ARM_FEATURE_V8_ATOMICS and initial decode 2018-05-10 18:10:57 +01:00
cpu64.c target/arm: Enable ARM_FEATURE_V8_ATOMICS for user-only 2018-05-10 18:10:57 +01:00
crypto_helper.c
gdbstub.c
gdbstub64.c
helper-a64.c target/arm: Implement CAS and CASP 2018-05-10 18:10:57 +01:00
helper-a64.h target/arm: Implement CAS and CASP 2018-05-10 18:10:57 +01:00
helper.c target/arm: Fix float16 to/from int16 2018-05-10 18:10:58 +01:00
helper.h target/arm: Fix float16 to/from int16 2018-05-10 18:10:58 +01:00
idau.h
internals.h target/arm: Add pre-EL change hooks 2018-04-26 11:04:39 +01:00
iwmmxt_helper.c
kvm-consts.h
kvm-stub.c
kvm.c target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route 2018-05-04 18:52:58 +01:00
kvm32.c target/arm: Query host CPU features on-demand at instance init 2018-03-09 17:09:44 +00:00
kvm64.c target/arm: Query host CPU features on-demand at instance init 2018-03-09 17:09:44 +00:00
kvm_arm.h target/arm: Query host CPU features on-demand at instance init 2018-03-09 17:09:44 +00:00
machine.c
Makefile.objs
monitor.c
neon_helper.c
op_addsub.h
op_helper.c target/arm: Add pre-EL change hooks 2018-04-26 11:04:39 +01:00
psci.c
trace-events target/arm/kvm: Translate the MSI doorbell in kvm_arch_fixup_msi_route 2018-05-04 18:52:58 +01:00
translate-a64.c target/arm: Fix float16 to/from int16 2018-05-10 18:10:58 +01:00
translate.c target/arm: Implement v8M VLLDM and VLSTM 2018-05-04 18:05:51 +01:00
translate.h tcg: Introduce tcg_set_insn_start_param 2018-04-10 13:02:26 +01:00
vec_helper.c