brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 193c9d2 Raw
26 lines · plain
1! Test predefined _OPENMP macro which denotes OpenMP version2 3! RUN: bbc -fopenmp -o -  %s | FileCheck %s --check-prefix=DEFAULT-OPENMP-VERSION4! RUN: bbc -fopenmp -fopenmp-version=31 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-315! RUN: bbc -fopenmp -fopenmp-version=40 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-406! RUN: bbc -fopenmp -fopenmp-version=45 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-457! RUN: bbc -fopenmp -fopenmp-version=50 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-508! RUN: bbc -fopenmp -fopenmp-version=51 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-519! RUN: bbc -fopenmp -fopenmp-version=52 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-5210! RUN: bbc -fopenmp -fopenmp-version=60 -o - %s | FileCheck %s --check-prefix=OPENMP-VERSION-6011 12! DEFAULT-OPENMP-VERSION: {{.*}} = arith.constant 201107 : i3213! OPENMP-VERSION-31: {{.*}} = arith.constant 201107 : i3214! OPENMP-VERSION-40: {{.*}} = arith.constant 201307 : i3215! OPENMP-VERSION-45: {{.*}} = arith.constant 201511 : i3216! OPENMP-VERSION-50: {{.*}} = arith.constant 201811 : i3217! OPENMP-VERSION-51: {{.*}} = arith.constant 202011 : i3218! OPENMP-VERSION-52: {{.*}} = arith.constant 202111 : i3219! OPENMP-VERSION-60: {{.*}} = arith.constant 202411 : i3220 21#if _OPENMP22  integer :: var1 = _OPENMP23#endif24end program25 26