|
1 |
| -! Test -flang-experimental-hlfir (flang-new), -hlfir (bbc), -emit-hlfir, -emit-fir flags |
| 1 | +! Test -flang-deprecated-hlfir, -flang-experimental-hlfir (flang-new), and |
| 2 | +! -hlfir (bbc), -emit-hlfir, -emit-fir flags |
2 | 3 | ! RUN: %flang_fc1 -emit-hlfir -o - %s | FileCheck --check-prefix HLFIR --check-prefix ALL %s
|
3 | 4 | ! RUN: bbc -emit-hlfir -o - %s | FileCheck --check-prefix HLFIR --check-prefix ALL %s
|
4 |
| -! RUN: %flang_fc1 -emit-hlfir -flang-experimental-hlfir -o - %s | FileCheck --check-prefix HLFIR --check-prefix ALL %s |
| 5 | +! RUN: %flang_fc1 -emit-hlfir -o - %s | FileCheck --check-prefix HLFIR --check-prefix ALL %s |
5 | 6 | ! RUN: bbc -emit-hlfir -hlfir -o - %s | FileCheck --check-prefix HLFIR --check-prefix ALL %s
|
6 |
| -! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck %s --check-prefix NO-HLFIR --check-prefix ALL |
| 7 | +! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck --check-prefix FIR --check-prefix ALL %s |
7 | 8 | ! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s --check-prefix NO-HLFIR --check-prefix ALL
|
8 |
| -! RUN: bbc -emit-fir -o - %s | FileCheck %s --check-prefix NO-HLFIR --check-prefix ALL |
9 |
| -! RUN: %flang_fc1 -emit-fir -flang-experimental-hlfir -o - %s | FileCheck --check-prefix FIR --check-prefix ALL %s |
10 |
| -! RUN: bbc -emit-fir -hlfir -o - %s | FileCheck --check-prefix FIR --check-prefix ALL %s |
| 9 | +! RUN: %flang_fc1 -emit-fir -flang-experimental-hlfir -o - %s | FileCheck %s --check-prefix FIR --check-prefix ALL |
| 10 | +! RUN: bbc -emit-fir -o - %s | FileCheck --check-prefix FIR --check-prefix ALL %s |
| 11 | +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s --check-prefix NO-HLFIR --check-prefix ALL |
11 | 12 |
|
12 |
| -! | Action | -flang-experimental-hlfir / -hlfir? | Result | |
13 |
| -! | =========== | =================================== | =============================== | |
14 |
| -! | -emit-hlfir | N | Outputs HLFIR | |
15 |
| -! | -emit-hlfir | Y | Outputs HLFIR | |
16 |
| -! | -emit-fir | N | Outputs FIR, using old lowering | |
17 |
| -! | -emit-fir | Y | Outputs FIR, lowering via HLFIR | |
| 13 | +! | Action | -flang-deprecated-no-hlfir | Result | |
| 14 | +! | | / -hlfir=false? | | |
| 15 | +! | =========== | =========================== | =============================== | |
| 16 | +! | -emit-hlfir | N | Outputs HLFIR | |
| 17 | +! | -emit-hlfir | Y | Outputs HLFIR | |
| 18 | +! | -emit-fir | N | Outputs FIR, lowering via HLFIR | |
| 19 | +! | -emit-fir | Y | Outputs FIR, using old lowering | |
18 | 20 |
|
19 | 21 | subroutine test(a, res)
|
20 | 22 | real :: a(:), res
|
|
0 commit comments