]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/cpu/x86/x86.factor
Fixing various test failures caused by C type parser change, and clarify C type docs...
[factor.git] / basis / cpu / x86 / x86.factor
index 63356aa5bbbdffe4366e214d562f141990182016..a4597dc861fd32ad51cc905d331bb181448a66c8 100644 (file)
@@ -101,7 +101,7 @@ M: x86 %set-slot ( src obj slot -- ) [+] swap MOV ;
 M: x86 %set-slot-imm ( src obj slot tag -- ) (%slot-imm) swap MOV ;
 
 :: two-operand ( dst src1 src2 rep -- dst src )
-    dst src2 eq? [ "Cannot handle this case" throw ] when
+    dst src2 eq? dst src1 eq? not and [ "Cannot handle this case" throw ] when
     dst src1 rep %copy
     dst src2 ; inline