From 8427e6fd3eb16dfa8be2658fe897e5ad985e63f3 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Mon, 21 Mar 2022 10:39:47 +0100 Subject: [PATCH] emitter test: Cleanup 32bit code. --- tests/ctest/x86emitter/codegen_tests.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/ctest/x86emitter/codegen_tests.h b/tests/ctest/x86emitter/codegen_tests.h index 71b1902f0d..b314a6616f 100644 --- a/tests/ctest/x86emitter/codegen_tests.h +++ b/tests/ctest/x86emitter/codegen_tests.h @@ -18,14 +18,6 @@ void runCodegenTest(void (*exec)(void *base), const char* description, const char* expected); // Use null to skip, empty string to expect no output -#ifdef __M_X86_64 -# define CODEGEN_TEST(command, expected32, expected64) runCodegenTest([](void *base){ command; }, #command, expected64) -# define CODEGEN_TEST_64(command, expected) CODEGEN_TEST(command, nullptr, expected) -# define CODEGEN_TEST_32(command, expected) -#else -# define CODEGEN_TEST(command, expected32, expected64) runCodegenTest([](void *base){ command; }, #command, expected32) -# define CODEGEN_TEST_64(command, expected) -# define CODEGEN_TEST_32(command, expected) CODEGEN_TEST(command, expected, nullptr) -#endif - +#define CODEGEN_TEST(command, expected32, expected64) runCodegenTest([](void *base){ command; }, #command, expected64) +#define CODEGEN_TEST_64(command, expected) CODEGEN_TEST(command, nullptr, expected) #define CODEGEN_TEST_BOTH(command, expected) CODEGEN_TEST(command, expected, expected)