[RISCV][VLOPT] Add vector narrowing integer right shift instructions to isSupportedIn...
[llvm-project.git] / offload / test / offloading / offloading_success.cpp
blobd3103b8666ab589417ad745e8f80454192c8e054
1 // RUN: %libomptarget-compilexx-run-and-check-generic
3 #include <omp.h>
4 #include <stdio.h>
6 int main(void) {
7 int isHost = 0;
9 #pragma omp target map(from : isHost)
10 { isHost = omp_is_initial_device(); }
12 if (isHost < 0) {
13 printf("Runtime error, isHost=%d\n", isHost);
16 // CHECK: Target region executed on the device
17 printf("Target region executed on the %s\n", isHost ? "host" : "device");
19 return isHost;