Skip to content

Commit 72c4a3f

Browse files
DavidSpicketttstellar
authored andcommitted
[clang][test] Don't require specific alignment in test case (llvm#130589)
llvm#129952 / 42d49a7 added this test which is failing on 32-bit ARM because the alignment chosen is 4 not 8. Which would make sense if this is a 32/64 bit difference https://lab.llvm.org/buildbot/#/builders/154/builds/13059 ``` <stdin>:34:30: note: scanning from here define dso_local void @_Z1fv(ptr dead_on_unwind noalias writable sret(%struct.B) align 4 %agg.result) #0 { ^ <stdin>:38:2: note: possible intended match here %0 = load ptr, ptr @x, align 4 ^ ``` The other test does not check alignment, so I'm assuming that it is not important here.
1 parent fbb2a7e commit 72c4a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/CodeGenCXX/cxx23-p2280r4.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ int& test() {
1515
}
1616

1717
// CHECK-LABEL: @_Z1fv(
18-
// CHECK: [[X1:%.*]] = load ptr, ptr @x, align 8
18+
// CHECK: [[X1:%.*]] = load ptr, ptr @x, align {{.*}}
1919
// CHECK-NEXT: store ptr [[X1]]
20-
// CHECK: [[X2:%.*]] = load ptr, ptr @x, align 8
20+
// CHECK: [[X2:%.*]] = load ptr, ptr @x, align {{.*}}
2121
// CHECK-NEXT: store ptr [[X2]]
22-
// CHECK: [[X3:%.*]] = load ptr, ptr @x, align 8
22+
// CHECK: [[X3:%.*]] = load ptr, ptr @x, align {{.*}}
2323
// CHECK-NEXT: store ptr [[X3]]
2424
int &ff();
2525
int &x = ff();

0 commit comments

Comments
 (0)