Browse Source

+ better test for IMUL and SHRD !

pierre 26 years ago
parent
commit
97b2b7f0b7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tests/tbs0123.pp

+ 8 - 0
tests/tbs0123.pp

@@ -3,5 +3,13 @@ begin
 {$asmmode intel}
 {$asmmode intel}
    asm
    asm
       SHRD [ESI-8], EAX, CL
       SHRD [ESI-8], EAX, CL
+      SHLD EBX,ECX,5
+      IMUL ECX,dword [EBP-8],5
+   end;
+{$asmmode att}
+   asm
+      shrdl %cl,%eax,-8(%esi)
+      shldl $5,%ecx,%ebx
+      imull $5,-8(%ebp),%ecx
    end;
    end;
 end.
 end.