https://github.com/dyung updated 
https://github.com/llvm/llvm-project/pull/209678

>From 0624c8c19f433f2cea64164547e62834ae4b7fd6 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <[email protected]>
Date: Tue, 14 Jul 2026 09:32:11 -0700
Subject: [PATCH] [Clang] Require x86 target for some tests (#209532)

These tests assert behavior about the always-inliner which now requires
a target to be present to check function attribute compatibility for
inlining.

Fix forward for 37b8e765ce4837a7577e6f762bcdffe4b232759c.

(cherry picked from commit 97f76580cdb0893d0b4edc7adf703162a23c0a67)
---
 clang/test/CodeGen/memcmp-inline-builtin-to-asm.c | 2 ++
 clang/test/CodeGen/memcpy-inline-builtin.c        | 2 ++
 clang/test/CodeGen/pr9614.c                       | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/clang/test/CodeGen/memcmp-inline-builtin-to-asm.c 
b/clang/test/CodeGen/memcmp-inline-builtin-to-asm.c
index 1dae1d8f0143d..e1347bd36d17b 100644
--- a/clang/test/CodeGen/memcmp-inline-builtin-to-asm.c
+++ b/clang/test/CodeGen/memcmp-inline-builtin-to-asm.c
@@ -1,5 +1,7 @@
 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
 
+// REQUIRES: x86-registered-target
+
 // RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | opt -S -passes=verify | 
FileCheck %s
 //
 // Verifies that clang detects memcmp inline version and uses it instead of 
the builtin.
diff --git a/clang/test/CodeGen/memcpy-inline-builtin.c 
b/clang/test/CodeGen/memcpy-inline-builtin.c
index d287ce361f571..bb86eb6515349 100644
--- a/clang/test/CodeGen/memcpy-inline-builtin.c
+++ b/clang/test/CodeGen/memcpy-inline-builtin.c
@@ -1,5 +1,7 @@
 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
 
+// REQUIRES: x86-registered-target
+
 // RUN: %clang_cc1 -triple x86_64 -emit-llvm -o - %s | FileCheck %s
 //
 // Verifies that clang detects memcpy inline version and uses it instead of 
the builtin.
diff --git a/clang/test/CodeGen/pr9614.c b/clang/test/CodeGen/pr9614.c
index 394af32fd6cb3..d8a7a1add5f7c 100644
--- a/clang/test/CodeGen/pr9614.c
+++ b/clang/test/CodeGen/pr9614.c
@@ -1,5 +1,7 @@
 // RUN: %clang_cc1 -triple x86_64-pc-linux -emit-llvm %s -o - | FileCheck %s
 
+// REQUIRES: x86-registered-target
+
 extern void foo_alias (void) __asm ("foo");
 inline void foo (void) {
   return foo_alias ();

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to