aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/A64/fuzz_with_unicorn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/A64/fuzz_with_unicorn.cpp')
-rw-r--r--tests/A64/fuzz_with_unicorn.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/A64/fuzz_with_unicorn.cpp b/tests/A64/fuzz_with_unicorn.cpp
index 7343f87e..1a56a982 100644
--- a/tests/A64/fuzz_with_unicorn.cpp
+++ b/tests/A64/fuzz_with_unicorn.cpp
@@ -265,6 +265,8 @@ static void RunTestInstance(Dynarmic::A64::Jit& jit, A64Unicorn& uni, A64TestEnv
const auto get_code = [&jit_env](u64 vaddr) { return jit_env.MemoryReadCode(vaddr); };
IR::Block ir_block = A64::Translate({instructions_start, FP::FPCR{fpcr}}, get_code, {});
Optimization::A64CallbackConfigPass(ir_block, GetUserConfig(jit_env));
+ Optimization::NamingPass(ir_block);
+
fmt::print("IR:\n");
fmt::print("{}\n", IR::DumpBlock(ir_block));
@@ -272,6 +274,7 @@ static void RunTestInstance(Dynarmic::A64::Jit& jit, A64Unicorn& uni, A64TestEnv
Optimization::DeadCodeElimination(ir_block);
Optimization::ConstantPropagation(ir_block);
Optimization::DeadCodeElimination(ir_block);
+
fmt::print("Optimized IR:\n");
fmt::print("{}\n", IR::DumpBlock(ir_block));