Skip to content

Commit 99e2e12

Browse files
committed
tests: adapt tests to LLVM 19 changes ...
... also fixes tests/codegen/xtensa.d
1 parent 3046e9e commit 99e2e12

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/codegen/simd_alignment.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ S17237 globalStruct;
2020
// CHECK-LABEL: define <8 x i32> @foo(
2121
extern(C) int8 foo(S17237* s)
2222
{
23-
// CHECK: %[[GEP:[0-9]]] = getelementptr {{.*}}S17237, ptr %s_arg
23+
// CHECK: %[[GEP:[0-9]]] = getelementptr {{(.*S17237|inbounds i8)}}, ptr %s_arg
2424
// CHECK: = load <8 x i32>, ptr %[[GEP]], align 32
2525
return s.c;
2626
}

tests/codegen/vastart_vaend_gh1744.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module mod;
1212
// OPT3-LABEL: define {{.*}} @{{.*}}void_three_return_paths
1313
void void_three_return_paths(int a, ...)
1414
{
15-
// OPT3: call void @llvm.va_start({{.*}} %[[VA:[_0-9a-zA-Z]+]])
15+
// OPT3: call void @llvm.va_start{{(\.p0)?}}({{.*}} %[[VA:[_0-9a-zA-Z]+]])
1616
// OPT3-NOT: return_two
1717
return_two();
1818

@@ -24,8 +24,8 @@ void void_three_return_paths(int a, ...)
2424

2525
// There are two control paths (normal return, exception resume) that
2626
// should call va_end.
27-
// OPT3: call void @llvm.va_end({{.*}} %[[VA]])
28-
// OPT3: call void @llvm.va_end({{.*}} %[[VA]])
27+
// OPT3: call void @llvm.va_end{{(\.p0)?}}({{.*}} %[[VA]])
28+
// OPT3: call void @llvm.va_end{{(\.p0)?}}({{.*}} %[[VA]])
2929
}
3030

3131
// OPT3-LABEL: define {{.*}} @{{.*}}return_two

tests/codegen/xtensa.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: target_Xtensa
22

3-
// RUN: %ldc -mtriple=xtensa -betterC
3+
// RUN: %ldc -mtriple=xtensa -betterC %s -c -of=%t.o
44

55
version (Xtensa) {} else static assert(0);
66

0 commit comments

Comments
 (0)