about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/031check_operands.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index 45d9e7e1..7b97d2b1 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -225,12 +225,11 @@ void init_permitted_operands() {
   put(Permitted_operands, "87", 0x01);
   // copy address (lea)
   put(Permitted_operands, "8d", 0x01);
-  // pop
-  put(Permitted_operands, "8f", 0x01);
 
   //// Class N: op, ModR/M and subop (not r32)
   //  imm32 imm8  disp32 |disp16  disp8 subop modrm
   //  0     0     0      |0       0     1     1
+  put(Permitted_operands, "8f", 0x03);  // pop
   put(Permitted_operands, "d3", 0x03);  // shift
   put(Permitted_operands, "f7", 0x03);  // test/not/mul/div
   put(Permitted_operands, "ff", 0x03);  // jump/push/call