codegen: some more tests
[mate.git] / Mate / X86CodeGen.hs
index 53ac64197098d88cdaa50f8345a550364f60e2e4..2b820b6379274638ebf5f6c8a93042e3144c0dcd 100644 (file)
@@ -173,6 +173,7 @@ emitFromBB method sig cls hmap =  do
     emit POP = add esp (4 :: Word32) -- drop value
     emit DUP = push (Disp 0, esp)
     emit DUP_X1 = do pop eax; pop ebx; push eax; push ebx; push eax
+    emit DUP_X2 = do pop eax; pop ebx; pop ecx; push eax; push ecx; push ebx; push eax
     emit AASTORE = emit IASTORE
     emit IASTORE = do
         pop eax -- value