X86: Implement a multimedia andn microop.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:24:58 +0000 (18:24 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 18 Aug 2009 01:24:58 +0000 (18:24 -0700)
src/arch/x86/isa/microops/mediaop.isa

index 0d6c7a39546f8188fdfe0283ecaa2ec8fb610a4f..35e0f8f35ef98aaa1646475d8ed57e7848b2e6d0 100644 (file)
@@ -355,4 +355,11 @@ let {{
         code = '''
             FpDestReg.uqw = FpSrcReg1.uqw & FpSrcReg2.uqw;
         '''
+
+    class Mandn(MediaOp):
+        def __init__(self, dest, src1, src2):
+            super(Mandn, self).__init__(dest, src1, src2, 1)
+        code = '''
+            FpDestReg.uqw = ~FpSrcReg1.uqw & FpSrcReg2.uqw;
+        '''
 }};