On 8/27/23 00:09, Bastian Koppelmann wrote:
On Sat, Aug 26, 2023 at 09:55:05PM -0700, Richard Henderson wrote:
On 8/26/23 09:02, Bastian Koppelmann wrote:
+uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t arg)
+{
+float32 f_arg = make_float32(arg);
+uint32_t result = 0;
+int32_t
On Sat, Aug 26, 2023 at 09:55:05PM -0700, Richard Henderson wrote:
> On 8/26/23 09:02, Bastian Koppelmann wrote:
> > +uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t arg)
> > +{
> > +float32 f_arg = make_float32(arg);
> > +uint32_t result = 0;
> > +int32_t flags = 0;
> > +
> > +
On 8/26/23 09:02, Bastian Koppelmann wrote:
+uint32_t helper_ftohp(CPUTriCoreState *env, uint32_t arg)
+{
+float32 f_arg = make_float32(arg);
+uint32_t result = 0;
+int32_t flags = 0;
+
+if (float32_is_infinity(f_arg)) {
+if (float32_is_neg(f_arg)) {
+return H
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Signed-off-by: Bastian Koppelmann
---
target/tricore/fpu_helper.c | 41 +++
target/tricore/helper.c | 1 +
target/tricore/helper.h | 1 +
target/tricore/translat