Skip to content

Commit 7141c5b

Browse files
committed
[flang][test] Update %flang tests after D156363
1 parent 4dd1467 commit 7141c5b

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

flang/test/Driver/lto-flags.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
! Also check linker plugin opt for Thin LTO
1313
! RUN: %flang -### -flto=thin %s 2>&1 | FileCheck %s --check-prefix=THIN-LTO
1414

15-
! RUN: %flang -### -S -flto=somelto %s 2>&1 | FileCheck %s --check-prefix=ERROR
15+
! RUN: not %flang -### -S -flto=somelto %s 2>&1 | FileCheck %s --check-prefix=ERROR
1616

1717
! FC1 tests. Check that it does not crash.
1818
! RUN: %flang_fc1 -S %s -flto -o /dev/null

flang/test/Driver/omp-driver-offload.f90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
! OFFLOAD-HOST-NOT: "-triple" "nvptx64-nvidia-cuda"
3434
! OFFLOAD-HOST-NOT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
3535

36-
! RUN: %flang -S -### %s -o %t 2>&1 \
36+
! RUN: not %flang -S -### %s -o %t 2>&1 \
3737
! RUN: -fopenmp --offload-arch=gfx90a --offload-arch=sm_70 --offload-device-only \
3838
! RUN: --target=aarch64-unknown-linux-gnu \
3939
! RUN: | FileCheck %s --check-prefix=OFFLOAD-DEVICE
@@ -44,7 +44,7 @@
4444
! OFFLOAD-DEVICE-NOT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu"
4545

4646
! 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
4848
! CHECK-OPENMP-IS-TARGET-DEVICE: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" {{.*}}.f90"
4949

5050
! Testing appropriate flags are gnerated and appropriately assigned by the driver when offloading
@@ -58,43 +58,43 @@
5858
! OPENMP-OFFLOAD-ARGS-NEXT: "{{[^"]*}}flang-new" "-fc1" "-triple" "aarch64-unknown-linux-gnu" {{.*}} "-fopenmp" {{.*}} "-fembed-offload-object={{.*}}.out" {{.*}}.bc"
5959

6060
! 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 \
6262
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
6363
! RUN: -fopenmp-assume-threads-oversubscription \
6464
! RUN: | FileCheck %s --check-prefixes=CHECK-THREADS-OVS
6565
! CHECK-THREADS-OVS: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-threads-oversubscription" {{.*}}.f90"
6666

67-
! RUN: %flang -### %s -o %t 2>&1 \
67+
! RUN: not %flang -### %s -o %t 2>&1 \
6868
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
6969
! RUN: -fopenmp-assume-teams-oversubscription \
7070
! RUN: | FileCheck %s --check-prefixes=CHECK-TEAMS-OVS
7171
! CHECK-TEAMS-OVS: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-teams-oversubscription" {{.*}}.f90"
7272

73-
! RUN: %flang -### %s -o %t 2>&1 \
73+
! RUN: not %flang -### %s -o %t 2>&1 \
7474
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
7575
! RUN: -fopenmp-assume-no-nested-parallelism \
7676
! RUN: | FileCheck %s --check-prefixes=CHECK-NEST-PAR
7777
! CHECK-NEST-PAR: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-no-nested-parallelism" {{.*}}.f90"
7878

79-
! RUN: %flang -### %s -o %t 2>&1 \
79+
! RUN: not %flang -### %s -o %t 2>&1 \
8080
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
8181
! RUN: -fopenmp-assume-no-thread-state \
8282
! RUN: | FileCheck %s --check-prefixes=CHECK-THREAD-STATE
8383
! CHECK-THREAD-STATE: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-assume-no-thread-state" {{.*}}.f90"
8484

85-
! RUN: %flang -### %s -o %t 2>&1 \
85+
! RUN: not %flang -### %s -o %t 2>&1 \
8686
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
8787
! RUN: -fopenmp-target-debug \
8888
! RUN: | FileCheck %s --check-prefixes=CHECK-TARGET-DEBUG
8989
! CHECK-TARGET-DEBUG: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-target-debug" {{.*}}.f90"
9090

91-
! RUN: %flang -### %s -o %t 2>&1 \
91+
! RUN: not %flang -### %s -o %t 2>&1 \
9292
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
9393
! RUN: -fopenmp-target-debug \
9494
! RUN: | FileCheck %s --check-prefixes=CHECK-TARGET-DEBUG
9595
! CHECK-TARGET-DEBUG-EQ: "{{[^"]*}}flang-new" "-fc1" {{.*}} "-fopenmp" {{.*}} "-fopenmp-is-target-device" "-fopenmp-target-debug=111" {{.*}}.f90"
9696

97-
! RUN: %flang -S -### %s -o %t 2>&1 \
97+
! RUN: not %flang -S -### %s -o %t 2>&1 \
9898
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
9999
! RUN: -fopenmp-target-debug -fopenmp-assume-threads-oversubscription \
100100
! RUN: -fopenmp-assume-teams-oversubscription -fopenmp-assume-no-nested-parallelism \
@@ -104,7 +104,7 @@
104104
! CHECK-RTL-ALL: "-fopenmp-assume-threads-oversubscription" "-fopenmp-assume-no-thread-state" "-fopenmp-assume-no-nested-parallelism"
105105
! CHECK-RTL-ALL: {{.*}}.f90"
106106

107-
! RUN: %flang -### %s -o %t 2>&1 \
107+
! RUN: not %flang -### %s -o %t 2>&1 \
108108
! RUN: -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa \
109109
! RUN: -fopenmp-version=45 \
110110
! RUN: | FileCheck %s --check-prefixes=CHECK-OPENMP-VERSION

flang/test/Driver/target-cpu-features.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
! RUN: | FileCheck %s -check-prefix=CHECK-ARMV9
1212

1313
! Negative test. ARM cpu with x86 target.
14-
! RUN: %flang --target=x86_64-linux-gnu -mcpu=cortex-a57 -c %s -### 2>&1 \
14+
! RUN: not %flang --target=x86_64-linux-gnu -mcpu=cortex-a57 -c %s -### 2>&1 \
1515
! RUN: | FileCheck %s -check-prefix=CHECK-NO-A57
1616

1717
! RUN: %flang --target=x86_64-linux-gnu -march=skylake -c %s -### 2>&1 \

0 commit comments

Comments
 (0)