From 93cccf7d198c8bf6a53481bc34ca9c19b1503196 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 19 Apr 2009 04:14:16 -0700 Subject: X86: Make the TEST instruction set all the flags it's supposed to. --- .../x86/isa/insts/general_purpose/compare_and_test/test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/isa/insts/general_purpose/compare_and_test/test.py b/src/arch/x86/isa/insts/general_purpose/compare_and_test/test.py index 2b4bf7b9a..0423fb5dd 100644 --- a/src/arch/x86/isa/insts/general_purpose/compare_and_test/test.py +++ b/src/arch/x86/isa/insts/general_purpose/compare_and_test/test.py @@ -57,26 +57,26 @@ microcode = ''' def macroop TEST_M_R { ld t1, seg, sib, disp - and t0, t1, reg, flags=(SF, ZF, PF) + and t0, t1, reg, flags=(OF, SF, ZF, PF, CF) }; def macroop TEST_P_R { rdip t7 ld t1, seg, riprel, disp - and t0, t1, reg, flags=(SF, ZF, PF) + and t0, t1, reg, flags=(OF, SF, ZF, PF, CF) }; def macroop TEST_R_R { - and t0, reg, regm, flags=(SF, ZF, PF) + and t0, reg, regm, flags=(OF, SF, ZF, PF, CF) }; def macroop TEST_M_I { ld t1, seg, sib, disp limm t2, imm - and t0, t1, t2, flags=(SF, ZF, PF) + and t0, t1, t2, flags=(OF, SF, ZF, PF, CF) }; def macroop TEST_P_I @@ -84,12 +84,12 @@ def macroop TEST_P_I rdip t7 ld t1, seg, riprel, disp limm t2, imm - and t0, t1, t2, flags=(SF, ZF, PF) + and t0, t1, t2, flags=(OF, SF, ZF, PF, CF) }; def macroop TEST_R_I { limm t1, imm - and t0, reg, t1, flags=(SF, ZF, PF) + and t0, reg, t1, flags=(OF, SF, ZF, PF, CF) }; ''' -- cgit v1.2.3