Print this page

        

@@ -368,10 +368,12 @@
         case cvtss2siq:
         case cvtsd2siq:
         case cvttss2siq:
         case cvttsd2siq:
                 return fex_inv_int;
+        default:
+                break;
         }
 
         /* check op1 for signaling nan */
         t1 = ((int)inst->op & DOUBLE)? my_fp_class(&inst->op1->d[0]) :
             my_fp_classf(&inst->op1->f[0]);

@@ -409,10 +411,12 @@
         case divsd:
                 if (t1 == fp_zero && t2 == fp_zero)
                         return fex_inv_zdz;
                 if (t1 == fp_infinity && t2 == fp_infinity)
                         return fex_inv_idi;
+        default:
+                break;
         }
 
         return (enum fex_exception)-1;
 }
 

@@ -636,10 +640,12 @@
                 case comisd:
                         info->op = fex_cmp;
                         info->res.type = fex_nodata;
                         sse_comisd(&info->op1.val.d, &info->op2.val.d);
                         break;
+                default:
+                        break;
                 }
         } else {
                 if (inst->op == cvtsi2ss) {
                         info->op1.type = fex_int;
                         info->op1.val.i = inst->op2->i[0];

@@ -789,10 +795,12 @@
                 case comiss:
                         info->op = fex_cmp;
                         info->res.type = fex_nodata;
                         sse_comiss(&info->op1.val.f, &info->op2.val.f);
                         break;
+                default:
+                        break;
                 }
         }
         __fenv_getmxcsr(&mxcsr);
         info->flags = mxcsr & 0x3d;
         __fenv_setmxcsr(&oldmxcsr);

@@ -1081,10 +1089,12 @@
                 for (i = 0; i < 2; i++) {
                         dummy.op1 = (sseoperand_t *)&inst->op1->f[i];
                         dummy.op2 = (sseoperand_t *)&inst->op2->d[i];
                         e[i] = __fex_get_sse_op(uap, &dummy, &info[i]);
                 }
+        default:
+                break;
         }
 }
 
 /*
  * Store the result value from *info in the destination of the scalar

@@ -1096,14 +1106,14 @@
  */
 void
 __fex_st_sse_result(ucontext_t *uap, sseinst_t *inst, enum fex_exception e,
     fex_info_t *info)
 {
-        int             i;
-        long long       l;
-        float           f, fscl;
-        double          d, dscl;
+        int             i = 0;
+        long long       l = 0L;;
+        float           f = 0.0, fscl;
+        double          d = 0.0L, dscl;
 
         /* for compares that write eflags, just set the flags
            to indicate "unordered" */
         if (inst->op == ucomiss || inst->op == comiss ||
             inst->op == ucomisd || inst->op == comisd) {

@@ -1226,10 +1236,13 @@
                         break;
 
                 case fex_ldouble:
                         i = info->res.val.q;
                         break;
+
+                default:
+                        break;
                 }
                 inst->op1->i[0] = i;
         } else if (inst->op == cmpsd || inst->op == cvttss2siq ||
             inst->op == cvtss2siq || inst->op == cvttsd2siq ||
             inst->op == cvtsd2siq) {

@@ -1251,10 +1264,13 @@
                         break;
 
                 case fex_ldouble:
                         l = info->res.val.q;
                         break;
+
+                default:
+                        break;
                 }
                 inst->op1->l[0] = l;
         } else if ((((int)inst->op & DOUBLE) && inst->op != cvtsd2ss) ||
             inst->op == cvtss2sd) {
                 switch (info->res.type) {

@@ -1275,10 +1291,13 @@
                         break;
 
                 case fex_ldouble:
                         d = info->res.val.q;
                         break;
+
+                default:
+                        break;
                 }
                 inst->op1->d[0] = d;
         } else {
                 switch (info->res.type) {
                 case fex_int:

@@ -1298,10 +1317,13 @@
                         break;
 
                 case fex_ldouble:
                         f = info->res.val.q;
                         break;
+
+                default:
+                        break;
                 }
                 inst->op1->f[0] = f;
         }
 }
 

@@ -1576,7 +1598,11 @@
                         dummy.op2 = (sseoperand_t *)&inst->op2->d[i];
                         __fex_st_sse_result(uap, &dummy, e[i], &info[i]);
                 }
                 /* zero the high 64 bits of the destination */
                 inst->op1->l[1] = 0ll;
+
+        default:
+                break;
         }
 }
+