|
33 | 33 | ! OFFLOAD-HOST-NOT: "-triple" "nvptx64-nvidia-cuda"
|
34 | 34 | ! OFFLOAD-HOST-NOT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
|
35 | 35 |
|
36 |
| -! RUN: %flang -S -### %s -o %t 2>&1 \ |
| 36 | +! RUN: not %flang -S -### %s -o %t 2>&1 \ |
37 | 37 | ! RUN: -fopenmp --offload-arch=gfx90a --offload-arch=sm_70 --offload-device-only \
|
38 | 38 | ! RUN: --target=aarch64-unknown-linux-gnu \
|
39 | 39 | ! RUN: | FileCheck %s --check-prefix=OFFLOAD-DEVICE
|
|
44 | 44 | ! OFFLOAD-DEVICE-NOT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
|
45 | 45 |
|
46 | 46 | ! Test regular -fopenmp with offload for basic fopenmp-is-target-device flag addition and correct fopenmp
|
47 |
| -! RUN: %flang -### -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa %s 2>&1 | FileCheck --check-prefixes=CHECK-OPENMP-IS-TARGET-DEVICE %s |
| 47 | +! RUN: not %flang -### -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa %s 2>&1 | FileCheck --check-prefixes=CHECK-OPENMP-IS-TARGET-DEVICE %s |
48 | 48 | ! CHECK-OPENMP-IS-TARGET-DEVICE: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" {{.*}}.f90"
|
49 | 49 |
|
50 | 50 | ! Testing appropriate flags are gnerated and appropriately assigned by the driver when offloading
|
|
58 | 58 | ! OPENMP-OFFLOAD-ARGS-NEXT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu" {{.*}} "-fopenmp" {{.*}} "-fembed-offload-object={{.*}}.out" {{.*}}.bc"
|
59 | 59 |
|
60 | 60 | ! Test -fopenmp with offload for RTL Flag Options
|
61 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 61 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
62 | 62 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
63 | 63 | ! RUN: -fopenmp-assume-threads-oversubscription \
|
64 | 64 | ! RUN: | FileCheck %s --check-prefixes=CHECK-THREADS-OVS
|
65 | 65 | ! CHECK-THREADS-OVS: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-threads-oversubscription" {{.*}}.f90"
|
66 | 66 |
|
67 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 67 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
68 | 68 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
69 | 69 | ! RUN: -fopenmp-assume-teams-oversubscription \
|
70 | 70 | ! RUN: | FileCheck %s --check-prefixes=CHECK-TEAMS-OVS
|
71 | 71 | ! CHECK-TEAMS-OVS: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-teams-oversubscription" {{.*}}.f90"
|
72 | 72 |
|
73 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 73 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
74 | 74 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
75 | 75 | ! RUN: -fopenmp-assume-no-nested-parallelism \
|
76 | 76 | ! RUN: | FileCheck %s --check-prefixes=CHECK-NEST-PAR
|
77 | 77 | ! CHECK-NEST-PAR: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-no-nested-parallelism" {{.*}}.f90"
|
78 | 78 |
|
79 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 79 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
80 | 80 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
81 | 81 | ! RUN: -fopenmp-assume-no-thread-state \
|
82 | 82 | ! RUN: | FileCheck %s --check-prefixes=CHECK-THREAD-STATE
|
83 | 83 | ! CHECK-THREAD-STATE: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-no-thread-state" {{.*}}.f90"
|
84 | 84 |
|
85 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 85 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
86 | 86 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
87 | 87 | ! RUN: -fopenmp-target-debug \
|
88 | 88 | ! RUN: | FileCheck %s --check-prefixes=CHECK-TARGET-DEBUG
|
89 | 89 | ! CHECK-TARGET-DEBUG: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-target-debug" {{.*}}.f90"
|
90 | 90 |
|
91 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 91 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
92 | 92 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
93 | 93 | ! RUN: -fopenmp-target-debug \
|
94 | 94 | ! RUN: | FileCheck %s --check-prefixes=CHECK-TARGET-DEBUG
|
95 | 95 | ! CHECK-TARGET-DEBUG-EQ: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-target-debug=111" {{.*}}.f90"
|
96 | 96 |
|
97 |
| -! RUN: %flang -S -### %s -o %t 2>&1 \ |
| 97 | +! RUN: not %flang -S -### %s -o %t 2>&1 \ |
98 | 98 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
99 | 99 | ! RUN: -fopenmp-target-debug -fopenmp-assume-threads-oversubscription \
|
100 | 100 | ! RUN: -fopenmp-assume-teams-oversubscription -fopenmp-assume-no-nested-parallelism \
|
|
104 | 104 | ! CHECK-RTL-ALL: "-fopenmp-assume-threads-oversubscription" "-fopenmp-assume-no-thread-state" "-fopenmp-assume-no-nested-parallelism"
|
105 | 105 | ! CHECK-RTL-ALL: {{.*}}.f90"
|
106 | 106 |
|
107 |
| -! RUN: %flang -### %s -o %t 2>&1 \ |
| 107 | +! RUN: not %flang -### %s -o %t 2>&1 \ |
108 | 108 | ! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
|
109 | 109 | ! RUN: -fopenmp-version=45 \
|
110 | 110 | ! RUN: | FileCheck %s --check-prefixes=CHECK-OPENMP-VERSION
|
|
0 commit comments