Index: unittest/AssemblerX8664/TestUtil.h |
diff --git a/unittest/AssemblerX8664/TestUtil.h b/unittest/AssemblerX8664/TestUtil.h |
index 5a1d4a5523d9f964e9141ccb59a643319a9c0144..455fe9c8c5b469b123dbb3928c3cc4e20cc07156 100644 |
--- a/unittest/AssemblerX8664/TestUtil.h |
+++ b/unittest/AssemblerX8664/TestUtil.h |
@@ -29,9 +29,9 @@ namespace Test { |
class AssemblerX8664TestBase : public ::testing::Test { |
protected: |
using Address = AssemblerX8664::Traits::Address; |
- using ByteRegister = AssemblerX8664::Traits::ByteRegister; |
using Cond = AssemblerX8664::Traits::Cond; |
using GPRRegister = AssemblerX8664::Traits::GPRRegister; |
+ using ByteRegister = AssemblerX8664::Traits::ByteRegister; |
using Traits = AssemblerX8664::Traits; |
using XmmRegister = AssemblerX8664::Traits::XmmRegister; |
@@ -59,6 +59,9 @@ protected: |
static constexpr GPRRegister Encoded_GPR_##NewName##l() { \ |
return GPRRegister::Encoded_Reg_##Name32; \ |
} \ |
+ static constexpr ByteRegister Encoded_Bytereg_##NewName() { \ |
+ return ByteRegister::Encoded_8_Reg_##Name8; \ |
+ } \ |
static constexpr GPRRegister Encoded_GPR_##Name64() { \ |
return GPRRegister::Encoded_Reg_##Name32; \ |
} \ |
@@ -86,6 +89,9 @@ protected: |
} \ |
static constexpr GPRRegister Encoded_GPR_##Name##l() { \ |
return GPRRegister::Encoded_Reg_##Name##d; \ |
+ } \ |
+ static constexpr ByteRegister Encoded_Bytereg_##Name() { \ |
+ return ByteRegister::Encoded_8_Reg_##Name##l; \ |
} |
#define XmmRegAliases(Name) \ |
static constexpr XmmRegister Encoded_Xmm_##Name() { \ |