|
8 | 8 | // RUN: | FileCheck --check-prefix=CHECK-LD-32 %s
|
9 | 9 | // CHECK-LD-32: "{{.*}}ld{{(.exe)?}}"
|
10 | 10 | // CHECK-LD-32: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
11 |
| -// CHECK-LD-32: "-lpthread" "-lc" |
| 11 | +// CHECK-LD-32: "-lpthread" "-latomic" "-lc" |
12 | 12 | //
|
13 | 13 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
14 | 14 | // RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform \
|
15 | 15 | // RUN: | FileCheck --check-prefix=CHECK-LD-64 %s
|
16 | 16 | // CHECK-LD-64: "{{.*}}ld{{(.exe)?}}"
|
17 | 17 | // CHECK-LD-64: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
18 |
| -// CHECK-LD-64: "-lpthread" "-lc" |
| 18 | +// CHECK-LD-64: "-lpthread" "-latomic" "-lc" |
19 | 19 | //
|
20 | 20 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
21 | 21 | // RUN: -fopenmp=libgomp -target i386-unknown-linux -rtlib=platform \
|
|
27 | 27 | // SIMD-ONLY2-NOT: liomp
|
28 | 28 | // CHECK-GOMP-LD-32: "{{.*}}ld{{(.exe)?}}"
|
29 | 29 | // CHECK-GOMP-LD-32: "-lgomp" "-lrt"
|
30 |
| -// CHECK-GOMP-LD-32: "-lpthread" "-lc" |
| 30 | +// CHECK-GOMP-LD-32: "-lpthread" "-latomic" "-lc" |
31 | 31 |
|
32 | 32 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 -fopenmp-simd -target i386-unknown-linux -rtlib=platform | FileCheck --check-prefix SIMD-ONLY2 %s
|
33 | 33 | // SIMD-ONLY2-NOT: lgomp
|
|
39 | 39 | // RUN: | FileCheck --check-prefix=CHECK-GOMP-LD-64 %s
|
40 | 40 | // CHECK-GOMP-LD-64: "{{.*}}ld{{(.exe)?}}"
|
41 | 41 | // CHECK-GOMP-LD-64: "-lgomp" "-lrt"
|
42 |
| -// CHECK-GOMP-LD-64: "-lpthread" "-lc" |
| 42 | +// CHECK-GOMP-LD-64: "-lpthread" "-latomic" "-lc" |
43 | 43 | //
|
44 | 44 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
45 | 45 | // RUN: -fopenmp -target i386-unknown-linux -rtlib=platform \
|
46 | 46 | // RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-32 %s
|
47 | 47 | // CHECK-IOMP5-LD-32: "{{.*}}ld{{(.exe)?}}"
|
48 | 48 | // CHECK-IOMP5-LD-32: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
49 |
| -// CHECK-IOMP5-LD-32: "-lpthread" "-lc" |
| 49 | +// CHECK-IOMP5-LD-32: "-lpthread" "-latomic" "-lc" |
50 | 50 | //
|
51 | 51 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
52 | 52 | // RUN: -fopenmp -target x86_64-unknown-linux -rtlib=platform \
|
53 | 53 | // RUN: | FileCheck --check-prefix=CHECK-IOMP5-LD-64 %s
|
54 | 54 | // CHECK-IOMP5-LD-64: "{{.*}}ld{{(.exe)?}}"
|
55 | 55 | // CHECK-IOMP5-LD-64: "-l[[DEFAULT_OPENMP_LIB:[^"]*]]"
|
56 |
| -// CHECK-IOMP5-LD-64: "-lpthread" "-lc" |
| 56 | +// CHECK-IOMP5-LD-64: "-lpthread" "-latomic" "-lc" |
57 | 57 | //
|
58 | 58 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
59 | 59 | // RUN: -fopenmp=lib -target i386-unknown-linux \
|
|
71 | 71 | // RUN: | FileCheck --check-prefix=CHECK-LD-OVERRIDE-32 %s
|
72 | 72 | // CHECK-LD-OVERRIDE-32: "{{.*}}ld{{(.exe)?}}"
|
73 | 73 | // CHECK-LD-OVERRIDE-32: "-lgomp" "-lrt"
|
74 |
| -// CHECK-LD-OVERRIDE-32: "-lpthread" "-lc" |
| 74 | +// CHECK-LD-OVERRIDE-32: "-lpthread" "-latomic" "-lc" |
75 | 75 | //
|
76 | 76 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
77 | 77 | // RUN: -fopenmp -fopenmp=libgomp -target x86_64-unknown-linux \
|
78 | 78 | // RUN: -rtlib=platform \
|
79 | 79 | // RUN: | FileCheck --check-prefix=CHECK-LD-OVERRIDE-64 %s
|
80 | 80 | // CHECK-LD-OVERRIDE-64: "{{.*}}ld{{(.exe)?}}"
|
81 | 81 | // CHECK-LD-OVERRIDE-64: "-lgomp" "-lrt"
|
82 |
| -// CHECK-LD-OVERRIDE-64: "-lpthread" "-lc" |
| 82 | +// CHECK-LD-OVERRIDE-64: "-lpthread" "-latomic" "-lc" |
83 | 83 | //
|
84 | 84 | // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
|
85 | 85 | // RUN: -fopenmp=libomp -target x86_64-msvc-win32 -rtlib=platform \
|
|
0 commit comments