1// clang-format off
2// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
3// RUN: -DTGT1_DIRECTIVE="target" \
4// RUN: -DLOOP_DIRECTIVE="for"
5// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
6// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
7// RUN: %libomptarget-run-generic
8// RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST
9// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
10// RUN: -DTGT1_DIRECTIVE="target" \
11// RUN: -DTGT2_DIRECTIVE="target" \
12// RUN: -DLOOP_DIRECTIVE="for"
13// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
14// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
15// RUN: %libomptarget-run-generic
16// RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND
17//
18// RUN: %libomptarget-compileoptxx-generic -fopenmp-target-jit \
19// RUN: -DTGT1_DIRECTIVE="target" \
20// RUN: -DLOOP_DIRECTIVE="parallel for"
21// RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \
22// RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \
23// 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
89// clang-format on
90
91// UNSUPPORTED: aarch64-unknown-linux-gnu
92// UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
93// UNSUPPORTED: x86_64-pc-linux-gnu
94// UNSUPPORTED: x86_64-pc-linux-gnu-LTO
95// UNSUPPORTED: s390x-ibm-linux-gnu
96// UNSUPPORTED: s390x-ibm-linux-gnu-LTO
97
98#include "empty_kernel.inc"
99

source code of offload/test/jit/empty_kernel_lvl2.c