Skip to content

Commit a4d9a8d

Browse files
committed
[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.
1 parent bd96295 commit a4d9a8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/test/CodeGen/mips-vector-return.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ typedef float v4sf __attribute__ ((__vector_size__ (16)));
88
typedef double v4df __attribute__ ((__vector_size__ (32)));
99
typedef int v4i32 __attribute__ ((__vector_size__ (16)));
1010

11-
// O32-LABEL: define{{.*}} void @test_v4sf(ptr dead_on_unwind noalias nocapture writable writeonly sret
11+
// O32-LABEL: define{{.*}} void @test_v4sf(ptr {{.*}} sret
1212
// N64: define{{.*}} inreg { i64, i64 } @test_v4sf
1313
v4sf test_v4sf(float a) {
1414
return (v4sf){0.0f, a, 0.0f, 0.0f};
1515
}
1616

17-
// O32-LABEL: define{{.*}} void @test_v4df(ptr dead_on_unwind noalias nocapture writable writeonly sret
18-
// N64-LABEL: define{{.*}} void @test_v4df(ptr dead_on_unwind noalias nocapture writable writeonly sret
17+
// O32-LABEL: define{{.*}} void @test_v4df(ptr {{.*}} sret
18+
// N64-LABEL: define{{.*}} void @test_v4df(ptr {{.*}} sret
1919
v4df test_v4df(double a) {
2020
return (v4df){0.0, a, 0.0, 0.0};
2121
}

clang/test/CodeGen/mips64-nontrivial-return.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class D : public B {
1010

1111
extern D gd0;
1212

13-
// CHECK: _Z4foo1v(ptr dead_on_unwind noalias nocapture writable writeonly sret
13+
// CHECK: _Z4foo1v(ptr {{.*}} sret
1414

1515
D foo1(void) {
1616
return gd0;

0 commit comments

Comments
 (0)