[clang] a4d9a8d - [Clang] Don't match irrelevant attributes in mips return tests (NFC)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 20 03:42:35 PST 2025
Author: Nikita Popov
Date: 2025-01-20T12:41:02+01:00
New Revision: a4d9a8de0820f3ccc2eb35870cac199e8dacd9e6
URL: https://github.com/llvm/llvm-project/commit/a4d9a8de0820f3ccc2eb35870cac199e8dacd9e6
DIFF: https://github.com/llvm/llvm-project/commit/a4d9a8de0820f3ccc2eb35870cac199e8dacd9e6.diff
LOG: [Clang] Don't match irrelevant attributes in mips return tests (NFC)
The only thing these tests care about from an ABI perspective is sret,
don't also test all the optimization attributes.
Added:
Modified:
clang/test/CodeGen/mips-vector-return.c
clang/test/CodeGen/mips64-nontrivial-return.cpp
Removed:
################################################################################
diff --git a/clang/test/CodeGen/mips-vector-return.c b/clang/test/CodeGen/mips-vector-return.c
index c2a9bbfe9db02f..bd9d9391a5da56 100644
--- a/clang/test/CodeGen/mips-vector-return.c
+++ b/clang/test/CodeGen/mips-vector-return.c
@@ -8,14 +8,14 @@ typedef float v4sf __attribute__ ((__vector_size__ (16)));
typedef double v4df __attribute__ ((__vector_size__ (32)));
typedef int v4i32 __attribute__ ((__vector_size__ (16)));
-// O32-LABEL: define{{.*}} void @test_v4sf(ptr dead_on_unwind noalias nocapture writable writeonly sret
+// O32-LABEL: define{{.*}} void @test_v4sf(ptr {{.*}} sret
// N64: define{{.*}} inreg { i64, i64 } @test_v4sf
v4sf test_v4sf(float a) {
return (v4sf){0.0f, a, 0.0f, 0.0f};
}
-// O32-LABEL: define{{.*}} void @test_v4df(ptr dead_on_unwind noalias nocapture writable writeonly sret
-// N64-LABEL: define{{.*}} void @test_v4df(ptr dead_on_unwind noalias nocapture writable writeonly sret
+// O32-LABEL: define{{.*}} void @test_v4df(ptr {{.*}} sret
+// N64-LABEL: define{{.*}} void @test_v4df(ptr {{.*}} sret
v4df test_v4df(double a) {
return (v4df){0.0, a, 0.0, 0.0};
}
diff --git a/clang/test/CodeGen/mips64-nontrivial-return.cpp b/clang/test/CodeGen/mips64-nontrivial-return.cpp
index a8fbf4622f8036..a038574140bb5f 100644
--- a/clang/test/CodeGen/mips64-nontrivial-return.cpp
+++ b/clang/test/CodeGen/mips64-nontrivial-return.cpp
@@ -10,7 +10,7 @@ class D : public B {
extern D gd0;
-// CHECK: _Z4foo1v(ptr dead_on_unwind noalias nocapture writable writeonly sret
+// CHECK: _Z4foo1v(ptr {{.*}} sret
D foo1(void) {
return gd0;
More information about the cfe-commits
mailing list