Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 648802
Collapse All | Expand All

(-)rustc-1.23.0-src/src/binaryen/src/emscripten-optimizer/optimizer-shared.cpp.orig (-3 / +13 lines)
Lines 156-164 AsmSign detectSign(Ref node, IString min Link Here
156
      case '>': {
156
      case '>': {
157
        if (op == TRSHIFT) return ASM_UNSIGNED;
157
        if (op == TRSHIFT) return ASM_UNSIGNED;
158
      } // fallthrough
158
      } // fallthrough
159
      case '|': case '&': case '^': case '<': case '=': case '!': return ASM_SIGNED;
159
      case '|': // fallthrough
160
      case '+': case '-': return ASM_FLEXIBLE;
160
      case '&': // fallthrough
161
      case '*': case '/': return ASM_NONSIGNED; // without a coercion, these are double
161
      case '^': // fallthrough
162
      case '<': // fallthrough
163
      case '=': // fallthrough
164
      case '!':
165
        return ASM_SIGNED;
166
      case '+': // fallthrough
167
      case '-': 
168
        return ASM_FLEXIBLE;
169
      case '*': 
170
      case '/': 
171
        return ASM_NONSIGNED; // without a coercion, these are double
162
      default: abort_on(node);
172
      default: abort_on(node);
163
    }
173
    }
164
  } else if (type == UNARY_PREFIX) {
174
  } else if (type == UNARY_PREFIX) {

Return to bug 648802