translate: some float arg handling
[ia32rtools.git] / tests / x87_s.expect.c
index 3a644b9..45a9976 100644 (file)
@@ -6,12 +6,12 @@ double sub_test()
 
   sf.d[0] = 4;  // var_4
   f_st[--f_stp & 7] = (float)(s32)sf.d[0];  // var_4 fild
-  f_st[--f_stp & 7] = *((float *)(u32)&sf.d[0]);  // var_4 fld
+  f_st[--f_stp & 7] = *(float *)((u32)&sf.d[0]);  // var_4 fld
   f_st[--f_stp & 7] = (float)(s32)sf.d[0];  // var_4 fild
   f_st[--f_stp & 7] = 1.0;
   f_st[--f_stp & 7] = (float)(s32)sf.d[0];  // var_4 fild
   f_st[--f_stp & 7] = 0.0;
-  f_st[--f_stp & 7] = 0.693147180559945;
+  f_st[--f_stp & 7] = M_LN2;
   f_st[--f_stp & 7] = (float)(s32)sf.d[0];  // var_4 fild
   f_stp++;
   f_st[(f_stp + 5) & 7] /= f_st[f_stp & 7];  f_stp++;
@@ -22,7 +22,7 @@ double sub_test()
   f_st[f_stp & 7] = -f_st[f_stp & 7];
   f_st[(f_stp + 1) & 7] = atanf(f_st[(f_stp + 1) & 7] / f_st[f_stp & 7]); f_stp++;
   sf.d[0] = (s32)f_st[f_stp & 7];  // var_4 fist
-  *((float *)(u32)&sf.d[0]) = f_st[f_stp & 7];  f_stp++;  // var_4 fst
+  *(float *)((u32)&sf.d[0]) = f_st[f_stp & 7];  f_stp++;  // var_4 fst
   return f_st[f_stp & 7];
 }