From 6c2f8ab085279c89319f44bb775e23bcbcbff689 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 13 Sep 2023 14:33:33 -0700 Subject: [PATCH] InstCountCI: Add log before compiling instruction If CI faults out due to a bug then we would have no log as to which instruction caused the issue. I find myself adding this each time an assert fires to see what instruction it was working on. Just add it directly. --- Source/Tools/CodeSizeValidation/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Tools/CodeSizeValidation/Main.cpp b/Source/Tools/CodeSizeValidation/Main.cpp index 9e1ea6a21..bcc0bdb14 100644 --- a/Source/Tools/CodeSizeValidation/Main.cpp +++ b/Source/Tools/CodeSizeValidation/Main.cpp @@ -251,6 +251,8 @@ static bool TestInstructions(FEXCore::Context::Context *CTX, FEXCore::Core::Inte TestInfo const *CurrentTest = &TestHeaderData->Tests[0]; for (size_t i = 0; i < TestHeaderData->NumTests; ++i) { uint64_t CodeRIP = (uint64_t)&CurrentTest->Code[0]; + LogMan::Msg::IFmt("Compiling instruction '{}'", CurrentTest->TestInst); + // Compile the INST. CTX->CompileRIP(Thread, CodeRIP);