aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2010-03-19 23:15:32 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-20 11:17:03 +0100
commit30138f2814a3d2748937a32620eb4e68a3c58041 (patch)
tree1cc1dd5d065d26b46a55041114f3e75624527ac2
parentbafd20cec911c491fbe16aa1c8a4aa97673ac0b1 (diff)
tcg: protect div2 in tcg/tcg-opc.h
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
-rw-r--r--tcg/tcg-opc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h
index 01fea1e50d..441e51f5c9 100644
--- a/tcg/tcg-opc.h
+++ b/tcg/tcg-opc.h
@@ -61,7 +61,8 @@ DEF2(div_i32, 1, 2, 0, 0)
DEF2(divu_i32, 1, 2, 0, 0)
DEF2(rem_i32, 1, 2, 0, 0)
DEF2(remu_i32, 1, 2, 0, 0)
-#else
+#endif
+#ifdef TCG_TARGET_HAS_div2_i32
DEF2(div2_i32, 2, 3, 0, 0)
DEF2(divu2_i32, 2, 3, 0, 0)
#endif
@@ -141,7 +142,8 @@ DEF2(div_i64, 1, 2, 0, 0)
DEF2(divu_i64, 1, 2, 0, 0)
DEF2(rem_i64, 1, 2, 0, 0)
DEF2(remu_i64, 1, 2, 0, 0)
-#else
+#endif
+#ifdef TCG_TARGET_HAS_div2_i64
DEF2(div2_i64, 2, 3, 0, 0)
DEF2(divu2_i64, 2, 3, 0, 0)
#endif