Skip to content

Commit 5ae99be

Browse files
committed
[clang][AIX] Remove test for the default OpenMP runtime
The default OpenMP runtime may not be libomp since it can be changed by specified `CLANG_DEFAULT_OPENMP_RUNTIME`. This test will fail if we change the default OpenMP runtime. This patch removes test for the default OpenMP runtime and moves the CHECKs downward. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D143549
1 parent d3188c7 commit 5ae99be

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

clang/test/Driver/aix-ld.c

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,14 +1017,33 @@
10171017
// CHECK-LD64-SHARED-EXPFULL: "-lm"
10181018
// CHECK-LD64-SHARED-EXPFULL: "-lc"
10191019

1020-
// Check powerpc-ibm-aix7.1.0.0. -fopenmp to use default OpenMP runtime libomp.
1020+
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libomp to specify libomp explicitly.
10211021
// RUN: %clang %s -### 2>&1 \
10221022
// RUN: -resource-dir=%S/Inputs/resource_dir \
10231023
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
10241024
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
10251025
// RUN: --unwindlib=libunwind \
1026-
// RUN: -fopenmp \
1026+
// RUN: -fopenmp=libomp \
10271027
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-OMP %s
1028+
1029+
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libiomp5 to specify libgomp explicitly.
1030+
// RUN: %clang %s -### 2>&1 \
1031+
// RUN: -resource-dir=%S/Inputs/resource_dir \
1032+
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
1033+
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
1034+
// RUN: --unwindlib=libunwind \
1035+
// RUN: -fopenmp=libiomp5 \
1036+
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-IOMP5 %s
1037+
1038+
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libgomp to specify libgomp explicitly.
1039+
// RUN: %clang %s -### 2>&1 \
1040+
// RUN: -resource-dir=%S/Inputs/resource_dir \
1041+
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
1042+
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
1043+
// RUN: --unwindlib=libunwind \
1044+
// RUN: -fopenmp=libgomp \
1045+
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-GOMP %s
1046+
10281047
// CHECK-FOPENMP-NOT: warning:
10291048
// CHECK-FOPENMP: "-cc1" "-triple" "powerpc-ibm-aix7.1.0.0"
10301049
// CHECK-FOPENMP: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
@@ -1047,33 +1066,6 @@
10471066
// CHECK-FOPENMP-GOMP: "-lgomp"
10481067
// CHECK-FOPENMP: "-lc"
10491068

1050-
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libomp to specify libomp explicitly.
1051-
// RUN: %clang %s -### 2>&1 \
1052-
// RUN: -resource-dir=%S/Inputs/resource_dir \
1053-
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
1054-
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
1055-
// RUN: --unwindlib=libunwind \
1056-
// RUN: -fopenmp=libomp \
1057-
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-OMP %s
1058-
1059-
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libiomp5 to specify libgomp explicitly.
1060-
// RUN: %clang %s -### 2>&1 \
1061-
// RUN: -resource-dir=%S/Inputs/resource_dir \
1062-
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
1063-
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
1064-
// RUN: --unwindlib=libunwind \
1065-
// RUN: -fopenmp=libiomp5 \
1066-
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-IOMP5 %s
1067-
1068-
// Check powerpc-ibm-aix7.1.0.0. -fopenmp=libgomp to specify libgomp explicitly.
1069-
// RUN: %clang %s -### 2>&1 \
1070-
// RUN: -resource-dir=%S/Inputs/resource_dir \
1071-
// RUN: --target=powerpc-ibm-aix7.1.0.0 \
1072-
// RUN: --sysroot %S/Inputs/aix_ppc_tree \
1073-
// RUN: --unwindlib=libunwind \
1074-
// RUN: -fopenmp=libgomp \
1075-
// RUN: | FileCheck --check-prefixes=CHECK-FOPENMP,CHECK-FOPENMP-GOMP %s
1076-
10771069
// Check powerpc-ibm-aix7.1.0.0, 32-bit. -fopenmp=libfoo results an error.
10781070
// RUN: %clang %s 2>&1 -### \
10791071
// RUN: --target=powerpc-ibm-aix7.1.0.0 \

0 commit comments

Comments
 (0)