|
114 | 114 | // LIBCXX-NOT: include/amdgcn-amd-amdhsa/c++/v1
|
115 | 115 |
|
116 | 116 | // RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \
|
117 |
| -// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES |
| 117 | +// RUN: -nogpulib %s --opaque-offload-linker 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES |
118 | 118 | // CHECK-TARGET-FEATURES: clang-offload-packager{{.*}} "-o" {{.*}}.out" "--image=file={{.*}}.bc,triple=amdgcn-amd-amdhsa,arch=gfx90a:xnack+,kind=openmp"
|
119 | 119 | // CHECK-TARGET-FEATURES: clang-offload-packager"{{.*}}.o" "--image=file={{.*}}.bc,triple=amdgcn-amd-amdhsa,arch=gfx90a:xnack+,kind=openmp"
|
120 | 120 | // CHECK-TARGET-FEATURES: opt{{.*}} "-mtriple=amdgcn-amd-amdhsa" "-o" {{.*}}.bc" "-mcpu=gfx90a" "-mattr=+xnack,+precise-memory"
|
121 | 121 | // CHECK-TARGET-FEATURES: llc{{.*}} "-mtriple=amdgcn-amd-amdhsa" "-filetype=asm" "-o" {{.*}}.s" "{{.*}}.bc" "-mcpu=gfx90a" "-mattr=+xnack,+precise-memory"
|
122 | 122 | // CHECK-TARGET-FEATURES: llc{{.*}} "-mtriple=amdgcn-amd-amdhsa" "-filetype=obj" "-o" {{.*}}.o" "{{.*}}.bc" "-mcpu=gfx90a" "-mattr=+xnack,+precise-memory"
|
123 | 123 | // CHECK-TARGET-FEATURES: lld{{.*}} "-flavor" "gnu" "--no-undefined" "-shared" {{.*}}.o" "-plugin-opt=mcpu=gfx90a" "-plugin-opt=-mattr=+xnack,+precise-memory" "-o" {{.*}}.out"
|
| 124 | + |
| 125 | +// RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \ |
| 126 | +// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES-LW |
| 127 | +// CHECK-TARGET-FEATURES-LW: clang-linker-wrapper |
| 128 | + |
| 129 | +// RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \ |
| 130 | +// RUN: -nogpulib %s -O3 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES-LW3 |
| 131 | +// CHECK-TARGET-FEATURES-LW3: clang-linker-wrapper{{.*}} "--device-linker=--lto-newpm-passes=default<O3>" |
| 132 | + |
| 133 | +// RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \ |
| 134 | +// RUN: -nogpulib %s -O2 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES-LW2 |
| 135 | +// CHECK-TARGET-FEATURES-LW2: clang-linker-wrapper{{.*}} "--device-linker=--lto-newpm-passes=default<O2>" |
| 136 | + |
| 137 | +// RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \ |
| 138 | +// RUN: -nogpulib %s -O1 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES-LW1 |
| 139 | +// CHECK-TARGET-FEATURES-LW1: clang-linker-wrapper{{.*}} "--device-linker=--lto-newpm-passes=default<O1>" |
| 140 | + |
| 141 | +// RUN: %clang -### --save-temps -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:xnack+ -mamdgpu-precise-memory-op \ |
| 142 | +// RUN: -nogpulib %s -O0 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-FEATURES-LW0 |
| 143 | +// CHECK-TARGET-FEATURES-LW0-NOT: clang-linker-wrapper{{.*}} "--device-linker=--lto-newpm-passes=default<O0>" |
0 commit comments