about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--mu_instructions12
1 files changed, 6 insertions, 6 deletions
diff --git a/mu_instructions b/mu_instructions
index a5f7d7cb..c4f81dc3 100644
--- a/mu_instructions
+++ b/mu_instructions
@@ -76,12 +76,12 @@ var/reg <- xor n                  => "81 6/subop/xor %" reg " " n "/imm32"
 xor-with var, n                   => "81 6/subop/xor *(ebp+" var.stack-offset ") " n "/imm32"
 xor-with *var/reg, n              => "81 6/subop/xor *" reg " " n "/imm32"
 
-var/reg <- shift-left n
-var/reg <- shift-right n
-var/reg <- shift-right-signed n
-shift-left var, n
-shift-right var, n
-shift-right-signed var, n
+var/reg <- shift-left n           => "c1/shift 4/subop/left %" reg " " n "/imm32"
+var/reg <- shift-right n          => "c1/shift 5/subop/right %" reg " " n "/imm32"
+var/reg <- shift-right-signed n   => "c1/shift 7/subop/right-signed %" reg " " n "/imm32"
+shift-left var, n                 => "c1/shift 4/subop/left *(ebp+" var.stack-offset ") " n "/imm32"
+shift-right var, n                => "c1/shift 5/subop/right *(ebp+" var.stack-offset ") " n "/imm32"
+shift-right-signed var, n         => "c1/shift 7/subop/right-signed *(ebp+" var.stack-offset ") " n "/imm32"
 
 var/eax <- copy n                 => "b8/copy-to-eax " n "/imm32"
 var/ecx <- copy n                 => "b9/copy-to-ecx " n "/imm32"
136'>136 137 138 139 140 141 142 143 144 145 146 147 148 149