From b5d40183829f5aa6f8f7196aad11cef037d04443 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 2 Dec 2007 01:46:29 -0800 Subject: X86: Fix a copy/paste mistake where the bit test instructions were using an immediate where they should use a register. --HG-- extra : convert_revision : b0ee80e4c7fdb58a1eb85b3bcc82a0cdaa93330a --- .../general_purpose/compare_and_test/bit_test.py | 24 ++++++++-------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_test.py b/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_test.py index babd4a385..f4e062d55 100644 --- a/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_test.py +++ b/src/arch/x86/isa/insts/general_purpose/compare_and_test/bit_test.py @@ -82,8 +82,7 @@ def macroop BT_R_R { }; def macroop BT_M_R { - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" add t2, t2, base ld t1, seg, [scale, index, t2], disp sext t0, t1, reg, flags=(CF,) @@ -91,8 +90,7 @@ def macroop BT_M_R { def macroop BT_P_R { rdip t7 - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" ld t1, seg, [1, t2, t7] sext t0, t1, reg, flags=(CF,) }; @@ -139,8 +137,7 @@ def macroop BTC_R_R { }; def macroop BTC_M_R { - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" add t2, t2, base limm t3, 1 rol t3, t3, reg @@ -152,8 +149,7 @@ def macroop BTC_M_R { def macroop BTC_P_R { rdip t7 - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, 1 rol t3, t3, reg ldst t1, seg, [1, t2, t7] @@ -204,8 +200,7 @@ def macroop BTR_R_R { }; def macroop BTR_M_R { - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" add t2, t2, base limm t3, "(uint64_t(-(2ULL)))" rol t3, t3, reg @@ -217,8 +212,7 @@ def macroop BTR_M_R { def macroop BTR_P_R { rdip t7 - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, "(uint64_t(-(2ULL)))" rol t3, t3, reg ldst t1, seg, [1, t2, t7] @@ -269,8 +263,7 @@ def macroop BTS_R_R { }; def macroop BTS_M_R { - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" add t2, t2, base limm t3, 1 rol t3, t3, reg @@ -282,8 +275,7 @@ def macroop BTS_M_R { def macroop BTS_P_R { rdip t7 - limm t1, imm - srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" + srai t2, reg, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)" limm t3, 1 rol t3, t3, reg ldst t1, seg, [1, t2, t7] -- cgit v1.2.3