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

index 7e03fcba349014d74687660941fff4950338c14c..e2151774b8eeb59069b0ede23450ff344f112065 100644 (file)
@@ -334,4 +334,11 @@ let {{
             }
             FpDestReg.uqw = result;
         '''
+
+    class Mxor(MediaOp):
+        def __init__(self, dest, src1, src2):
+            super(Mxor, self).__init__(dest, src1, src2, 1)
+        code = '''
+            FpDestReg.uqw = FpSrcReg1.uqw ^ FpSrcReg2.uqw;
+        '''
 }};