xref: /llvm-project/offload/test/jit/empty_kernel_lvl1.c (revision 8823448807f3b1a1362d1417e062d763734e02f5)
1 // clang-format off
2 // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
3 // RUN:     -DTGT1_DIRECTIVE="target"
4 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
5 // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
6 // RUN:     %libomptarget-run-generic
7 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
8 // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
9 // RUN:     -DTGT1_DIRECTIVE="target"                        \
10 // RUN:     -DTGT2_DIRECTIVE="target"
11 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
12 // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
13 // RUN:     %libomptarget-run-generic
14 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST
15 //
16 // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
17 // RUN:     -DTGT1_DIRECTIVE="target teams"
18 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
19 // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
20 // RUN:     %libomptarget-run-generic
21 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
22 // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \
23 // RUN:     -DTGT1_DIRECTIVE="target teams"                  \
24 // RUN:     -DTGT2_DIRECTIVE="target teams"
25 // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll     \
26 // RUN:     LIBOMPTARGET_JIT_SKIP_OPT=true                   \
27 // RUN:     %libomptarget-run-generic
28 // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
29 // clang-format on
30 
31 // REQUIRES: gpu
32 
33 #include "empty_kernel.inc"
34