Merge pull request #2816 from xmcclure/profile-clean-0
[mono.git] / mono / mini / decompose.c
index 30e8f7f91dc88cf770d4e863477f4ea00ee160f0..10a5bdfd5b40a943f3a0b627cd4cb91265ff7121 100644 (file)
@@ -6,6 +6,7 @@
  *
  * (C) 2002 Ximian, Inc.
  * Copyright 2011 Xamarin, Inc (http://www.xamarin.com)
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include "mini.h"
@@ -471,6 +472,7 @@ mono_decompose_opcode (MonoCompile *cfg, MonoInst *ins)
                }
                break;
 
+#if SIZEOF_VOID_P == 8
        case OP_LDIV:
        case OP_LREM:
        case OP_LDIV_UN:
@@ -502,10 +504,12 @@ mono_decompose_opcode (MonoCompile *cfg, MonoInst *ins)
                        NULLIFY_INS (ins);
                }
                break;
+#endif
 
        case OP_DIV_IMM:
        case OP_REM_IMM:
        case OP_IDIV_IMM:
+       case OP_IREM_IMM:
        case OP_IDIV_UN_IMM:
        case OP_IREM_UN_IMM:
                if (cfg->backend->need_div_check) {