1330d8983SJohannes Doerfert // clang-format off 2330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \ 3330d8983SJohannes Doerfert // RUN: -DTGT1_DIRECTIVE="target" 4330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \ 5330d8983SJohannes Doerfert // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \ 6330d8983SJohannes Doerfert // RUN: %libomptarget-run-generic 7330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST 8330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \ 9330d8983SJohannes Doerfert // RUN: -DTGT1_DIRECTIVE="target" \ 10330d8983SJohannes Doerfert // RUN: -DTGT2_DIRECTIVE="target" 11330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \ 12330d8983SJohannes Doerfert // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \ 13330d8983SJohannes Doerfert // RUN: %libomptarget-run-generic 14330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST 15330d8983SJohannes Doerfert // 16330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \ 17330d8983SJohannes Doerfert // RUN: -DTGT1_DIRECTIVE="target teams" 18330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \ 19330d8983SJohannes Doerfert // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \ 20330d8983SJohannes Doerfert // RUN: %libomptarget-run-generic 21330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefix=FIRST 22330d8983SJohannes Doerfert // RUN: %libomptarget-compileopt-generic -fopenmp-target-jit \ 23330d8983SJohannes Doerfert // RUN: -DTGT1_DIRECTIVE="target teams" \ 24330d8983SJohannes Doerfert // RUN: -DTGT2_DIRECTIVE="target teams" 25330d8983SJohannes Doerfert // RUN: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=%t.pre.ll \ 26330d8983SJohannes Doerfert // RUN: LIBOMPTARGET_JIT_SKIP_OPT=true \ 27330d8983SJohannes Doerfert // RUN: %libomptarget-run-generic 28330d8983SJohannes Doerfert // RUN: %fcheck-plain-generic --input-file %t.pre.ll %S/empty_kernel.inc --check-prefixes=FIRST,SECOND 29330d8983SJohannes Doerfert // clang-format on 30330d8983SJohannes Doerfert 31*88234488SEthan Luis McDonough // REQUIRES: gpu 32330d8983SJohannes Doerfert 33330d8983SJohannes Doerfert #include "empty_kernel.inc" 34