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 | // UNSUPPORTED: aarch64-unknown-linux-gnu |
32 | // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO |
33 | // UNSUPPORTED: x86_64-pc-linux-gnu |
34 | // UNSUPPORTED: x86_64-pc-linux-gnu-LTO |
35 | // UNSUPPORTED: s390x-ibm-linux-gnu |
36 | // UNSUPPORTED: s390x-ibm-linux-gnu-LTO |
37 | |
38 | #include "empty_kernel.inc" |
39 | |