brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · e9ec5d9 Raw
35 lines · plain
1!===----------------------------------------------------------------------===!2! This directory can be used to add Integration tests involving multiple3! stages of the compiler (for eg. from Fortran to LLVM IR). It should not4! contain executable tests. We should only add tests here sparingly and only5! if there is no other way to test. Repeat this message in each test that is6! added to this directory and sub-directories.7!===----------------------------------------------------------------------===!8 9!RUN: %flang_fc1 -emit-hlfir -fopenmp -O3 %s -o - | FileCheck %s --check-prefix HLFIR10!RUN: %flang_fc1 -emit-fir -fopenmp -O3 %s -o - | FileCheck %s --check-prefix FIR11 12subroutine sb1(x, y)13  integer :: x(:)14  integer :: y(:)15  !$omp parallel workshare16  x = y17  !$omp end parallel workshare18end subroutine19 20! HLFIR:     omp.parallel {21! HLFIR:       omp.workshare {22! HLFIR:         hlfir.assign23! HLFIR:         omp.terminator24! HLFIR:       }25! HLFIR:       omp.terminator26! HLFIR:     }27 28! FIR:     omp.parallel {29! FIR:       omp.wsloop nowait {30! FIR:         omp.loop_nest31! FIR:       }32! FIR:       omp.barrier33! FIR:       omp.terminator34! FIR:     }35