From 37de60e5f93830c28362d15e41568b2e1e9350f1 Mon Sep 17 00:00:00 2001 From: Kashyap Chamarthy Date: Mon, 7 Apr 2025 17:33:54 +0200 Subject: [PATCH] unittests: ORC: Skip the ReOptimizeLayerTest for RISC-V Content-type: text/plain David Abdurachmanov reports[1] that we hit this error on P550 hardware: [...] /builddir/build/BUILD/llvm-20.1.1-build/llvm-project-20.1.1.src/llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp:140: Failure Value of: llvm::detail::TakeError(RM.takeError()) Expected: succeeded Actual: failed (Architecture not supported) (of type llvm::detail::ErrorHolder) [...] Tom Stellard noted[2] that he's seen this before on other architectures and suggested to skip it. [1] https://src.fedoraproject.org/rpms/llvm/pull-request/408#comment-255547 [2] https://src.fedoraproject.org/rpms/llvm/pull-request/408#comment-255557 Signed-off-by: Kashyap Chamarthy --- llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp index 78dc0f24c0f99e6df74a1139c4defd8bd91e6b9a..a7edac29d1e99a53c133e6eca8f84ac1b95a2925 100644 --- a/llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/ReOptimizeLayerTest.cpp @@ -55,6 +55,10 @@ protected: if (Triple.isPPC()) GTEST_SKIP(); + // RISC-V is not supported yet + if (Triple.isRISCV()) + GTEST_SKIP(); + auto EPC = SelfExecutorProcessControl::Create(); if (!EPC) { consumeError(EPC.takeError()); -- 2.49.0