Fix 6667: Constant folding for unslgined long divide operation
authorHyeongseok Oh <hseok82.oh@smasung.com>
Thu, 22 Sep 2016 03:03:53 +0000 (12:03 +0900)
committerHyeongseok Oh <hseok82.oh@smasung.com>
Thu, 22 Sep 2016 03:03:53 +0000 (12:03 +0900)
src/jit/valuenum.cpp

index 5bc96ed4a9f885f3162d88cfd4df402bee0ae699..0cdd628a203b20c837160273a4ea919585835901 100644 (file)
@@ -7061,10 +7061,10 @@ VNFunc Compiler::fgValueNumberHelperMethVNFunc(CorInfoHelpFunc helpFunc)
             vnf = VNFunc(GT_MOD);
             break;
         case CORINFO_HELP_ULDIV:
-            vnf = VNFunc(GT_DIV);
+            vnf = VNFunc(GT_UDIV);
             break; // Is this the right thing?
         case CORINFO_HELP_ULMOD:
-            vnf = VNFunc(GT_MOD);
+            vnf = VNFunc(GT_UMOD);
             break; // Is this the right thing?
 
         case CORINFO_HELP_LNG2DBL: