https://github.com/Men-cotton created 
https://github.com/llvm/llvm-project/pull/189379

Update `clang/test/CIR/CodeGen/clear-cache.c` to match the overloaded 
`llvm.clear_cache.p0` intrinsic spelling introduced by #189283.

>From 68e5bd059243874e5002e1a87747c5fc967495d4 Mon Sep 17 00:00:00 2001
From: mencotton <[email protected]>
Date: Mon, 30 Mar 2026 22:23:25 +0900
Subject: [PATCH] [CIR][NFC] Fix clear-cache test after #189283

Update `clang/test/CIR/CodeGen/clear-cache.c` to match the overloaded 
`llvm.clear_cache.p0` intrinsic spelling introduced by #189283.
---
 clang/test/CIR/CodeGen/clear-cache.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clang/test/CIR/CodeGen/clear-cache.c 
b/clang/test/CIR/CodeGen/clear-cache.c
index bf13985c231be..63db14e025185 100644
--- a/clang/test/CIR/CodeGen/clear-cache.c
+++ b/clang/test/CIR/CodeGen/clear-cache.c
@@ -7,7 +7,7 @@
 
 char buffer[32] = "This is a largely unused buffer";
 
-// __builtin___clear_cache always maps to @llvm.clear_cache, but what
+// __builtin___clear_cache always maps to @llvm.clear_cache.p0, but what
 // each back-end produces is different, and this is tested in LLVM
 
 // CIR-LABEL: main
@@ -22,10 +22,10 @@ char buffer[32] = "This is a largely unused buffer";
 // CIR:  cir.clear_cache %[[VAL_3]], %[[VAL_8]] : !cir.ptr<!void>
 
 // LLVM-LABEL: main
-// LLVM:  call void @llvm.clear_cache(ptr @buffer, ptr getelementptr inbounds 
nuw (i8, ptr @buffer, i64 32))
+// LLVM:  call void @llvm.clear_cache.p0(ptr @buffer, ptr getelementptr 
inbounds nuw (i8, ptr @buffer, i64 32))
 
 // OGCG-LABEL: main
-// OGCG:  call void @llvm.clear_cache(ptr @buffer, ptr getelementptr inbounds 
nuw (i8, ptr @buffer, i64 32))
+// OGCG:  call void @llvm.clear_cache.p0(ptr @buffer, ptr getelementptr 
inbounds nuw (i8, ptr @buffer, i64 32))
 
 int main(void) {
   __builtin___clear_cache(buffer, buffer + 32);

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

Reply via email to