xref: /llvm-project/offload/test/jit/empty_kernel_lvl2.c (revision 8823448807f3b1a1362d1417e062d763734e02f5)
1330d8983SJohannes Doerfert // clang-format off
2330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
3330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target"                          \
4330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="for"
5330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
6330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
7330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
8330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
9330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
10330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target"                          \
11330d8983SJohannes Doerfert // RUN:     -DTGT2_DIRECTIVE="target"                          \
12330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="for"
13330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
14330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
15330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
16330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
17330d8983SJohannes Doerfert //
18330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
19330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target"                          \
20330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="parallel for"
21330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
22330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
23330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
24330d8983SJohannes Doerfert // TODO:
25330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
26330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
27330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target"                          \
28330d8983SJohannes Doerfert // RUN:     -DTGT2_DIRECTIVE="target teams"                    \
29330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="parallel for"
30330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
31330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
32330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
33330d8983SJohannes Doerfert // TODO:
34330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
35330d8983SJohannes Doerfert //
36330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
37330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
38330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute"
39330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
40330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
41330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
42330d8983SJohannes Doerfert // TODO:
43330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
44330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
45330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
46330d8983SJohannes Doerfert // RUN:     -DTGT2_DIRECTIVE="target teams"                    \
47330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute"
48330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
49330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
50330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
51330d8983SJohannes Doerfert // TODO:
52330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
53330d8983SJohannes Doerfert //
54330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
55330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
56330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute parallel for"
57330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
58330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
59330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
60330d8983SJohannes Doerfert // TODO:
61330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
62330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
63330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
64330d8983SJohannes Doerfert // RUN:     -DTGT2_DIRECTIVE="target teams"                    \
65330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute parallel for"
66330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
67330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
68330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
69330d8983SJohannes Doerfert // TODO:
70330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
71330d8983SJohannes Doerfert //
72330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
73330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
74330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute parallel for simd"
75330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
76330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
77330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
78330d8983SJohannes Doerfert // TODO:
79330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
80330d8983SJohannes Doerfert // RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
81330d8983SJohannes Doerfert // RUN:     -DTGT1_DIRECTIVE="target teams"                    \
82330d8983SJohannes Doerfert // RUN:     -DTGT2_DIRECTIVE="target teams"                    \
83330d8983SJohannes Doerfert // RUN:     -DLOOP_DIRECTIVE="distribute parallel for simd"
84330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
85330d8983SJohannes Doerfert // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
86330d8983SJohannes Doerfert // RUN:     %libomptarget-run-generic
87330d8983SJohannes Doerfert // TODO:
88330d8983SJohannes Doerfert // RUN: not %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
89330d8983SJohannes Doerfert // clang-format on
90330d8983SJohannes Doerfert 
91*88234488SEthan Luis McDonough // REQUIRES: gpu
92330d8983SJohannes Doerfert 
93330d8983SJohannes Doerfert #include "empty_kernel.inc"
94