+ case iro_Quot:
+ /* This was missing in original implementation. Why? */
+ if (ta && tb && (get_irn_mode(a) == get_irn_mode(b))) {
+ if (tarval_classify(tb) == 0) {res = NULL; break;}
+ res = tarval_quo(ta, tb);
+ }
+ break;
+ case iro_Div:
+ /* This was missing in original implementation. Why? */
+ if (ta && tb && (get_irn_mode(a) == get_irn_mode(b))) {
+ if (tarval_classify(tb) == 0) {res = NULL; break;}
+ res = tarval_div(ta, tb);
+ }
+ break;
+ case iro_Mod:
+ /* This was missing in original implementation. Why? */
+ if (ta && tb && (get_irn_mode(a) == get_irn_mode(b))) {
+ if (tarval_classify(tb) == 0) {res = NULL; break;}
+ res = tarval_mod(ta, tb);
+ }
+ break;
+ /* for iro_DivMod see iro_Proj */