Skip to contentSkip to conversation

target-i386/fpu_helper.c: fbld instruction doesn't set minus sign

PATCH In review Dmitry Poletaev 2 participants 3 messages Jul 25, 2014 – Nov 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-i386/fpu_helper.c: fbld instruction doesn't set minus sign

Obviously, there is a misprint in function implementation.

From: Dmitry Poletaev <[email protected]>

---
 target-i386/fpu_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/fpu_helper.c +1 -1
index 1b2900d..be1e545 100644
@@ -622,7 +622,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr)
     }
     tmp = int64_to_floatx80(val, &env->fp_status);
     if (cpu_ldub_data(env, ptr + 9) & 0x80) {
-        floatx80_chs(tmp);
+        tmp = floatx80_chs(tmp);
     }
     fpush(env);
     ST0 = tmp;
Signature · 1 line
1.8.4.msysgit.0
#1 lore raw

ping

25.07.2014, 15:48, "Dmitry Poletaev" <[email protected]>:

Quoted 24 lines

Obviously, there is a misprint in function implementation.

From: Dmitry Poletaev <[email protected]>

---
 target-i386/fpu_helper.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
target-i386/fpu_helper.c +1 -2
index 1b2900d..be1e545 100644
@@ -622,7 +622,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr)
      }
      tmp = int64_to_floatx80(val, &env->fp_status);
      if (cpu_ldub_data(env, ptr + 9) & 0x80) {
-        floatx80_chs(tmp);
+        tmp = floatx80_chs(tmp);
      }
      fpush(env);
      ST0 = tmp;
--

1.8.4.msysgit.0

Reviewed-by
#2 lore raw
Quoted 12 lines · Dmitry Poletaev

ping

25.07.2014, 15:48, "Dmitry Poletaev" <[email protected]>:

Quoted 9 lines

Obviously, there is a misprint in function implementation.

From: Dmitry Poletaev <[email protected]>

---
 target-i386/fpu_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

target-i386/fpu_helper.c void helper_fbld_ST0(CPUX86State *env, target_ulong ptr) · line 628

Quoted 13 lines
target-i386/fpu_helper.c +1 -1
index 1b2900d..be1e545 100644
@@ -622,7 +622,7 @@ void helper_fbld_ST0(CPUX86State *env, target_ulong ptr)
     }
     tmp = int64_to_floatx80(val, &env->fp_status);
     if (cpu_ldub_data(env, ptr + 9) & 0x80) {
-        floatx80_chs(tmp);
+        tmp = floatx80_chs(tmp);
     }
     fpush(env);
     ST0 = tmp;

r~