X86: Implement a locking version of NEG.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 19 Apr 2009 11:56:28 +0000 (04:56 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 19 Apr 2009 11:56:28 +0000 (04:56 -0700)
src/arch/x86/isa/insts/general_purpose/arithmetic/add_and_subtract.py

index c8a2d1d1c55d959c06da215645ad33bbaab3a388..fbef20dc10bda2b1fa9c7404707997e2038f7968 100644 (file)
@@ -425,4 +425,19 @@ def macroop NEG_P
     sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF)
     st t1, seg, riprel, disp
 };
+
+def macroop NEG_LOCKED_M
+{
+    ldstl t1, seg, sib, disp
+    sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF)
+    stul t1, seg, sib, disp
+};
+
+def macroop NEG_LOCKED_P
+{
+    rdip t7
+    ldstl t1, seg, riprel, disp
+    sub t1, t0, t1, flags=(CF,OF,SF,ZF,AF,PF)
+    stul t1, seg, riprel, disp
+};
 '''