[Ryujit/ARM32] Fix wrong comparion
authorHyung-Kyu Choi <hk0110.choi@samsung.com>
Fri, 10 Mar 2017 07:15:23 +0000 (16:15 +0900)
committerHyung-Kyu Choi <hk0110.choi@samsung.com>
Fri, 10 Mar 2017 07:15:23 +0000 (16:15 +0900)
Fix wrong comparision.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/f6d581ce298749e70cba1f4441fe1a599486d090

src/coreclr/src/jit/codegenarm.cpp

index a1e339d..a7d4cbb 100644 (file)
@@ -386,7 +386,7 @@ void CodeGen::genCodeForBinary(GenTree* treeNode)
     assert(oper == GT_ADD || oper == GT_SUB || oper == GT_ADD_LO || oper == GT_ADD_HI || oper == GT_SUB_LO ||
            oper == GT_SUB_HI || oper == GT_OR || oper == GT_XOR || oper == GT_AND);
 
-    if ((oper == GT_ADD || oper == GT_SUB || GT_ADD_HI || GT_SUB_HI) && treeNode->gtOverflow())
+    if ((oper == GT_ADD || oper == GT_SUB || oper == GT_ADD_HI || oper == GT_SUB_HI) && treeNode->gtOverflow())
     {
         // This is also checked in the importer.
         NYI("Overflow not yet implemented");