Skip to content

Commit 45ccbc5

Browse files
committed
[test/Cilk][test/Tapir] Update regression tests to match ABI changes.
1 parent a0dbbd8 commit 45ccbc5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

clang/test/Cilk/cilksan-O0.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ int c = 2;
1212

1313
void addA() {
1414
// CHECK: define void @addA()
15-
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i64 0)
15+
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i8* {{.+}}, i64 0)
1616
a = c;
1717
}
1818

1919
void addB() {
2020
// CHECK: define void @addB()
21-
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i64 0)
21+
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i8* {{.+}}, i64 0)
2222
b = a;
2323
}
2424

2525
void foo() {
2626
// CHECK: define void @foo()
27-
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i64 3)
27+
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i8* {{.+}}, i64 257)
2828
_Cilk_spawn addA();
2929
addB();
3030
_Cilk_sync;
3131
}
3232

3333
int main() {
3434
// CHECK: define i32 @main()
35-
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i64 0)
35+
// CHECK: __csan_func_entry(i64 {{.+}}, i8* {{.+}}, i8* {{.+}}, i64 0)
3636
foo();
3737
return 0;
3838
}

llvm/test/Transforms/Tapir/stealable-attribute.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
; Check that Tapir lowering to the Cilk or CilkR targets will decorate
1+
; Check that Tapir lowering to the Cilk or OpenCilk targets will decorate
22
; functions that can be stolen with the "stealable" attribute.
33
;
44
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=cilk -simplifycfg -instcombine -S | FileCheck %s --check-prefix=LOWERING
5-
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=cilkr -simplifycfg -instcombine -S | FileCheck %s --check-prefix=LOWERING
6-
; RUN: opt < %s -passes='loop-spawning,function(simplify-cfg,instcombine),tapir2target,function(simplify-cfg,instcombine)' -tapir-target=cilkr -instcombine -S | FileCheck %s --check-prefix=LOWERING
5+
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=opencilk -simplifycfg -instcombine -S | FileCheck %s --check-prefix=LOWERING
6+
; RUN: opt < %s -passes='loop-spawning,function(simplify-cfg,instcombine),tapir2target,function(simplify-cfg,instcombine)' -tapir-target=opencilk -instcombine -S | FileCheck %s --check-prefix=LOWERING
77
;
88
; Check that the X86 assembly produced for stealable functions does
99
; not index stack variables using %rsp.
1010
;
1111
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=cilk -simplifycfg -instcombine | llc -O3 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=ASM
12-
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=cilkr -simplifycfg -instcombine | llc -O3 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=ASM
13-
; RUN: opt < %s -passes='loop-spawning,function(simplify-cfg,instcombine),tapir2target,function(simplify-cfg,instcombine)' -tapir-target=cilkr | llc -O3 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=ASM
12+
; RUN: opt < %s -loop-spawning-ti -simplifycfg -instcombine -tapir2target -tapir-target=opencilk -simplifycfg -instcombine | llc -O3 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=ASM
13+
; RUN: opt < %s -passes='loop-spawning,function(simplify-cfg,instcombine),tapir2target,function(simplify-cfg,instcombine)' -tapir-target=opencilk | llc -O3 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --check-prefix=ASM
1414

1515
%class._point3d = type { double, double, double }
1616
%struct.vertex.29 = type { i32, %class._point3d, [1 x %struct.vertex.29*] }

0 commit comments

Comments
 (0)