-#define LIGHTREC_DIRECT_IO (1 << 0)
-#define LIGHTREC_NO_INVALIDATE (1 << 1)
-#define LIGHTREC_NO_DS (1 << 2)
-#define LIGHTREC_SMC (1 << 3)
-#define LIGHTREC_EMULATE_BRANCH (1 << 4)
-#define LIGHTREC_LOCAL_BRANCH (1 << 5)
-#define LIGHTREC_HW_IO (1 << 6)
-#define LIGHTREC_MULT32 (1 << 7)
+#define BIT(x) (1ULL << (x))
+
+/* Flags for all opcodes */
+#define LIGHTREC_NO_DS BIT(0)
+#define LIGHTREC_UNLOAD_RS BIT(1)
+#define LIGHTREC_UNLOAD_RT BIT(2)
+#define LIGHTREC_UNLOAD_RD BIT(3)
+#define LIGHTREC_SYNC BIT(4)
+
+/* Flags for load/store opcodes */
+#define LIGHTREC_DIRECT_IO BIT(5)
+#define LIGHTREC_HW_IO BIT(6)
+#define LIGHTREC_SMC BIT(7)
+#define LIGHTREC_NO_INVALIDATE BIT(8)
+
+/* Flags for branches */
+#define LIGHTREC_EMULATE_BRANCH BIT(5)
+#define LIGHTREC_LOCAL_BRANCH BIT(6)
+
+/* Flags for div/mult opcodes */
+#define LIGHTREC_NO_LO BIT(5)
+#define LIGHTREC_NO_HI BIT(6)
+#define LIGHTREC_NO_DIV_CHECK BIT(7)