Author: Nikita Popov Date: 2026-07-06T10:15:20+02:00 New Revision: bf74249b5ecd651ca99043bea11a8b64301557d3
URL: https://github.com/llvm/llvm-project/commit/bf74249b5ecd651ca99043bea11a8b64301557d3 DIFF: https://github.com/llvm/llvm-project/commit/bf74249b5ecd651ca99043bea11a8b64301557d3.diff LOG: [Clang] Require X86 backend for some coroutine tests (#207681) The wrapper functions are generated without target features. They can still be inlined based on target-specific logic, but this requires the target to be available. We should fix this by properly generating the target features, but for now add a REQUIRES to unbreak the tests. Added: Modified: clang/test/CodeGenCoroutines/coro-elide.cpp clang/test/CodeGenCoroutines/coro-halo.cpp clang/test/CodeGenCoroutines/pr65018.cpp Removed: ################################################################################ diff --git a/clang/test/CodeGenCoroutines/coro-elide.cpp b/clang/test/CodeGenCoroutines/coro-elide.cpp index 1902dd64b5e5a..3bff2a29c6e07 100644 --- a/clang/test/CodeGenCoroutines/coro-elide.cpp +++ b/clang/test/CodeGenCoroutines/coro-elide.cpp @@ -1,5 +1,8 @@ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -O2 -emit-llvm %s -o - | FileCheck %s +// FIXME: Generate wrappers with correct target features. +// REQUIRES: x86-registered-target + #include "Inputs/coroutine.h" namespace { diff --git a/clang/test/CodeGenCoroutines/coro-halo.cpp b/clang/test/CodeGenCoroutines/coro-halo.cpp index e75bedaf81fa2..6dd785f5c1f8e 100644 --- a/clang/test/CodeGenCoroutines/coro-halo.cpp +++ b/clang/test/CodeGenCoroutines/coro-halo.cpp @@ -3,6 +3,9 @@ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -O2 -emit-llvm %s \ // RUN: -fcxx-exceptions -fexceptions -o - | FileCheck %s +// FIXME: Generate wrappers with correct target features. +// REQUIRES: x86-registered-target + #include "Inputs/coroutine.h" #include "Inputs/numeric.h" diff --git a/clang/test/CodeGenCoroutines/pr65018.cpp b/clang/test/CodeGenCoroutines/pr65018.cpp index f1cde461cabc2..f3b903dc0b396 100644 --- a/clang/test/CodeGenCoroutines/pr65018.cpp +++ b/clang/test/CodeGenCoroutines/pr65018.cpp @@ -1,6 +1,9 @@ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 \ // RUN: -O1 -emit-llvm %s -o - | FileCheck %s +// FIXME: Generate wrappers with correct target features. +// REQUIRES: x86-registered-target + #include "Inputs/coroutine.h" // A simple awaiter type with an await_suspend method that can't be _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
