Skip to content

Commit 5eabece

Browse files
committed
[Offload] Fix JIT test
1 parent f696508 commit 5eabece

File tree

2 files changed

+5
-72
lines changed

2 files changed

+5
-72
lines changed

offload/test/jit/empty_kernel.inc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ int main(int argc, char** argv) {
3333
}
3434

3535
// Check for an empty kernel (IR level)
36-
// FIRST: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main{{.*}}
37-
// FIRST-NEXT: ret void
36+
// FIRST: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main{{.*}}
3837

3938
// Check for two empty kernels (IR level)
40-
// SECOND: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main{{.*}}
41-
// SECOND-NEXT: ret void
39+
// SECOND: define weak_odr {{.*}} void @__omp_offloading_{{.*}}_main{{.*}}

offload/test/jit/empty_kernel_lvl2.c

Lines changed: 3 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// clang-format off
2-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
2+
// RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
33
// RUN: -DTGT1_DIRECTIVE="target" \
44
// RUN: -DLOOP_DIRECTIVE="for"
55
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
66
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
77
// RUN: %libomptarget-run-generic
88
// RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
9-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
9+
// RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
1010
// RUN: -DTGT1_DIRECTIVE="target" \
1111
// RUN: -DTGT2_DIRECTIVE="target" \
1212
// RUN: -DLOOP_DIRECTIVE="for"
@@ -15,77 +15,12 @@
1515
// RUN: %libomptarget-run-generic
1616
// RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
1717
//
18-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
18+
// RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
1919
// RUN: -DTGT1_DIRECTIVE="target" \
2020
// RUN: -DLOOP_DIRECTIVE="parallel for"
2121
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
2222
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
2323
// RUN: %libomptarget-run-generic
24-
// TODO:
25-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
26-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
27-
// RUN: -DTGT1_DIRECTIVE="target" \
28-
// RUN: -DTGT2_DIRECTIVE="target teams" \
29-
// RUN: -DLOOP_DIRECTIVE="parallel for"
30-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
31-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
32-
// RUN: %libomptarget-run-generic
33-
// TODO:
34-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
35-
//
36-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
37-
// RUN: -DTGT1_DIRECTIVE="target teams" \
38-
// RUN: -DLOOP_DIRECTIVE="distribute"
39-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
40-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
41-
// RUN: %libomptarget-run-generic
42-
// TODO:
43-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
44-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
45-
// RUN: -DTGT1_DIRECTIVE="target teams" \
46-
// RUN: -DTGT2_DIRECTIVE="target teams" \
47-
// RUN: -DLOOP_DIRECTIVE="distribute"
48-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
49-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
50-
// RUN: %libomptarget-run-generic
51-
// TODO:
52-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
53-
//
54-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
55-
// RUN: -DTGT1_DIRECTIVE="target teams" \
56-
// RUN: -DLOOP_DIRECTIVE="distribute parallel for"
57-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
58-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
59-
// RUN: %libomptarget-run-generic
60-
// TODO:
61-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
62-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
63-
// RUN: -DTGT1_DIRECTIVE="target teams" \
64-
// RUN: -DTGT2_DIRECTIVE="target teams" \
65-
// RUN: -DLOOP_DIRECTIVE="distribute parallel for"
66-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
67-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
68-
// RUN: %libomptarget-run-generic
69-
// TODO:
70-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
71-
//
72-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
73-
// RUN: -DTGT1_DIRECTIVE="target teams" \
74-
// RUN: -DLOOP_DIRECTIVE="distribute parallel for simd"
75-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
76-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
77-
// RUN: %libomptarget-run-generic
78-
// TODO:
79-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
80-
// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
81-
// RUN: -DTGT1_DIRECTIVE="target teams" \
82-
// RUN: -DTGT2_DIRECTIVE="target teams" \
83-
// RUN: -DLOOP_DIRECTIVE="distribute parallel for simd"
84-
// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
85-
// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
86-
// RUN: %libomptarget-run-generic
87-
// TODO:
88-
// RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
8924
// clang-format on
9025

9126
// REQUIRES: gpu

0 commit comments

Comments
 (0)