https://github.com/nikic created https://github.com/llvm/llvm-project/pull/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. >From b244e24b6bc4e0a2c633f7b17bdc99db13c2314e Mon Sep 17 00:00:00 2001 From: Nikita Popov <[email protected]> Date: Mon, 6 Jul 2026 10:12:26 +0200 Subject: [PATCH] [Clang] Require X86 backend for some coroutine tests 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. --- clang/test/CodeGenCoroutines/coro-elide.cpp | 3 +++ clang/test/CodeGenCoroutines/coro-halo.cpp | 3 +++ clang/test/CodeGenCoroutines/pr65018.cpp | 3 +++ 3 files changed, 9 insertions(+) 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
