From 91dc609ef0393c62f6b3f3e1103f432ff230983d Mon Sep 17 00:00:00 2001 From: Francesco Biscani Date: Tue, 30 Jul 2024 14:25:53 +0000 Subject: [PATCH] ppc fix. --- src/llvm_state.cpp | 2 +- test/llvm_state.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/llvm_state.cpp b/src/llvm_state.cpp index 724d6784b..ef7a80e01 100644 --- a/src/llvm_state.cpp +++ b/src/llvm_state.cpp @@ -423,7 +423,7 @@ struct llvm_state::jit { #elif defined(HEYOKA_ARCH_ARM) code_model::tiny, code_model::small, code_model::large #elif defined(HEYOKA_ARCH_PPC) - code_model::tiny, code_model::small, code_model::medium, code_model::large + code_model::small, code_model::medium, code_model::large #else // NOTE: by default we assume only small and large are supported. code_model::small, code_model::large diff --git a/test/llvm_state.cpp b/test/llvm_state.cpp index 89abffccb..98d1df267 100644 --- a/test/llvm_state.cpp +++ b/test/llvm_state.cpp @@ -444,8 +444,8 @@ TEST_CASE("code model") REQUIRE(oss.str() == "small"); } - // code_model::tiny not supported on x86. -#if defined(HEYOKA_ARCH_X86) + // code_model::tiny not supported on x86 or ppc. +#if defined(HEYOKA_ARCH_X86) || defined(HEYOKA_ARCH_PPC) { std::ostringstream oss;