Skip to content

Commit 5a73a07

Browse files
committed
clang/AMDGPU: Stop looking for oclc_daz_opt_* control libraries
These have been empty since July 2023
1 parent b46b307 commit 5a73a07

File tree

5 files changed

+37
-69
lines changed

5 files changed

+37
-69
lines changed

clang/lib/Driver/ToolChains/AMDGPU.cpp

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ void RocmInstallationDetector::scanLibDevicePath(llvm::StringRef Path) {
6565
FiniteOnly.Off = FilePath;
6666
} else if (BaseName == "oclc_finite_only_on") {
6767
FiniteOnly.On = FilePath;
68-
} else if (BaseName == "oclc_daz_opt_on") {
69-
DenormalsAreZero.On = FilePath;
70-
} else if (BaseName == "oclc_daz_opt_off") {
71-
DenormalsAreZero.Off = FilePath;
7268
} else if (BaseName == "oclc_correctly_rounded_sqrt_on") {
7369
CorrectlyRoundedSqrt.On = FilePath;
7470
} else if (BaseName == "oclc_correctly_rounded_sqrt_off") {
@@ -885,10 +881,6 @@ void ROCMToolChain::addClangTargetOptions(
885881
return;
886882

887883
bool Wave64 = isWave64(DriverArgs, Kind);
888-
// TODO: There are way too many flags that change this. Do we need to check
889-
// them all?
890-
bool DAZ = DriverArgs.hasArg(options::OPT_cl_denorms_are_zero) ||
891-
getDefaultDenormsAreZeroForTarget(Kind);
892884
bool FiniteOnly = DriverArgs.hasArg(options::OPT_cl_finite_math_only);
893885

894886
bool UnsafeMathOpt =
@@ -909,7 +901,7 @@ void ROCMToolChain::addClangTargetOptions(
909901

910902
// Add the generic set of libraries.
911903
BCLibs.append(RocmInstallation->getCommonBitcodeLibs(
912-
DriverArgs, LibDeviceFile, Wave64, DAZ, FiniteOnly, UnsafeMathOpt,
904+
DriverArgs, LibDeviceFile, Wave64, FiniteOnly, UnsafeMathOpt,
913905
FastRelaxedMath, CorrectSqrt, ABIVer, GPUSan, false));
914906

915907
for (auto [BCFile, Internalize] : BCLibs) {
@@ -942,9 +934,8 @@ bool RocmInstallationDetector::checkCommonBitcodeLibs(
942934
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
943935
RocmInstallationDetector::getCommonBitcodeLibs(
944936
const llvm::opt::ArgList &DriverArgs, StringRef LibDeviceFile, bool Wave64,
945-
bool DAZ, bool FiniteOnly, bool UnsafeMathOpt, bool FastRelaxedMath,
946-
bool CorrectSqrt, DeviceLibABIVersion ABIVer, bool GPUSan,
947-
bool isOpenMP) const {
937+
bool FiniteOnly, bool UnsafeMathOpt, bool FastRelaxedMath, bool CorrectSqrt,
938+
DeviceLibABIVersion ABIVer, bool GPUSan, bool isOpenMP) const {
948939
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12> BCLibs;
949940

950941
auto AddBCLib = [&](ToolChain::BitCodeLibraryInfo BCLib,
@@ -963,7 +954,6 @@ RocmInstallationDetector::getCommonBitcodeLibs(
963954
AddBCLib(getOCKLPath());
964955
else if (GPUSan && isOpenMP)
965956
AddBCLib(getOCKLPath(), false);
966-
AddBCLib(getDenormalsAreZeroPath(DAZ));
967957
AddBCLib(getUnsafeMathPath(UnsafeMathOpt || FastRelaxedMath));
968958
AddBCLib(getFiniteOnlyPath(FiniteOnly || FastRelaxedMath));
969959
AddBCLib(getCorrectlyRoundedSqrtPath(CorrectSqrt));
@@ -991,11 +981,6 @@ ROCMToolChain::getCommonDeviceLibNames(const llvm::opt::ArgList &DriverArgs,
991981
return {};
992982

993983
// If --hip-device-lib is not set, add the default bitcode libraries.
994-
// TODO: There are way too many flags that change this. Do we need to check
995-
// them all?
996-
bool DAZ = DriverArgs.hasFlag(options::OPT_fgpu_flush_denormals_to_zero,
997-
options::OPT_fno_gpu_flush_denormals_to_zero,
998-
getDefaultDenormsAreZeroForTarget(Kind));
999984
bool FiniteOnly = DriverArgs.hasFlag(
1000985
options::OPT_ffinite_math_only, options::OPT_fno_finite_math_only, false);
1001986
bool UnsafeMathOpt =
@@ -1015,7 +1000,7 @@ ROCMToolChain::getCommonDeviceLibNames(const llvm::opt::ArgList &DriverArgs,
10151000
getSanitizerArgs(DriverArgs).needsAsanRt();
10161001

10171002
return RocmInstallation->getCommonBitcodeLibs(
1018-
DriverArgs, LibDeviceFile, Wave64, DAZ, FiniteOnly, UnsafeMathOpt,
1003+
DriverArgs, LibDeviceFile, Wave64, FiniteOnly, UnsafeMathOpt,
10191004
FastRelaxedMath, CorrectSqrt, ABIVer, GPUSan, isOpenMP);
10201005
}
10211006

clang/lib/Driver/ToolChains/ROCm.h

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class RocmInstallationDetector {
135135
ConditionalLibrary WavefrontSize64;
136136
ConditionalLibrary FiniteOnly;
137137
ConditionalLibrary UnsafeMath;
138-
ConditionalLibrary DenormalsAreZero;
139138
ConditionalLibrary CorrectlyRoundedSqrt;
140139

141140
// Maps ABI version to library path. The version number is in the format of
@@ -150,8 +149,7 @@ class RocmInstallationDetector {
150149
bool allGenericLibsValid() const {
151150
return !OCML.empty() && !OCKL.empty() && !OpenCL.empty() &&
152151
WavefrontSize64.isValid() && FiniteOnly.isValid() &&
153-
UnsafeMath.isValid() && DenormalsAreZero.isValid() &&
154-
CorrectlyRoundedSqrt.isValid();
152+
UnsafeMath.isValid() && CorrectlyRoundedSqrt.isValid();
155153
}
156154

157155
void scanLibDevicePath(llvm::StringRef Path);
@@ -173,11 +171,12 @@ class RocmInstallationDetector {
173171

174172
/// Get file paths of default bitcode libraries common to AMDGPU based
175173
/// toolchains.
176-
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12> getCommonBitcodeLibs(
177-
const llvm::opt::ArgList &DriverArgs, StringRef LibDeviceFile,
178-
bool Wave64, bool DAZ, bool FiniteOnly, bool UnsafeMathOpt,
179-
bool FastRelaxedMath, bool CorrectSqrt, DeviceLibABIVersion ABIVer,
180-
bool GPUSan, bool isOpenMP) const;
174+
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
175+
getCommonBitcodeLibs(const llvm::opt::ArgList &DriverArgs,
176+
StringRef LibDeviceFile, bool Wave64, bool FiniteOnly,
177+
bool UnsafeMathOpt, bool FastRelaxedMath,
178+
bool CorrectSqrt, DeviceLibABIVersion ABIVer,
179+
bool GPUSan, bool isOpenMP) const;
181180
/// Check file paths of default bitcode libraries common to AMDGPU based
182181
/// toolchains. \returns false if there are invalid or missing files.
183182
bool checkCommonBitcodeLibs(StringRef GPUArch, StringRef LibDeviceFile,
@@ -243,10 +242,6 @@ class RocmInstallationDetector {
243242
return UnsafeMath.get(Enabled);
244243
}
245244

246-
StringRef getDenormalsAreZeroPath(bool Enabled) const {
247-
return DenormalsAreZero.get(Enabled);
248-
}
249-
250245
StringRef getCorrectlyRoundedSqrtPath(bool Enabled) const {
251246
return CorrectlyRoundedSqrt.get(Enabled);
252247
}

clang/test/Driver/amdgpu-openmp-toolchain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
// RUN: %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx803 \
5555
// RUN: --no-offloadlib --offloadlib --rocm-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode %s 2>&1 | \
5656
// RUN: FileCheck %s --check-prefix=CHECK-LIB-DEVICE
57-
// CHECK-LIB-DEVICE: "-cc1" {{.*}}ocml.bc"{{.*}}oclc_daz_opt_on.bc"{{.*}}oclc_unsafe_math_off.bc"{{.*}}oclc_finite_only_off.bc"{{.*}}oclc_correctly_rounded_sqrt_on.bc"{{.*}}oclc_wavefrontsize64_on.bc"{{.*}}oclc_isa_version_803.bc"
57+
// CHECK-LIB-DEVICE: "-cc1" {{.*}}ocml.bc"{{.*}}oclc_unsafe_math_off.bc"{{.*}}oclc_finite_only_off.bc"{{.*}}oclc_correctly_rounded_sqrt_on.bc"{{.*}}oclc_wavefrontsize64_on.bc"{{.*}}oclc_isa_version_803.bc"
5858

5959
// RUN: %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx803 -nogpulib \
6060
// RUN: --offloadlib --no-offloadlib --rocm-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode %s 2>&1 | \
6161
// RUN: FileCheck %s --check-prefix=CHECK-LIB-DEVICE-NOGPULIB
62-
// CHECK-LIB-DEVICE-NOGPULIB-NOT: "-cc1" {{.*}}ocml.bc"{{.*}}oclc_daz_opt_on.bc"{{.*}}oclc_unsafe_math_off.bc"{{.*}}oclc_finite_only_off.bc"{{.*}}oclc_correctly_rounded_sqrt_on.bc"{{.*}}oclc_wavefrontsize64_on.bc"{{.*}}oclc_isa_version_803.bc"
62+
// CHECK-LIB-DEVICE-NOGPULIB-NOT: "-cc1" {{.*}}ocml.bc"{{.*}}oclc_unsafe_math_off.bc"{{.*}}oclc_finite_only_off.bc"{{.*}}oclc_correctly_rounded_sqrt_on.bc"{{.*}}oclc_wavefrontsize64_on.bc"{{.*}}oclc_isa_version_803.bc"
6363

6464
// RUN: %clang -### -target x86_64-pc-linux-gnu -fopenmp --offload-arch=gfx90a:sramecc-:xnack+ \
6565
// RUN: -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET-ID

clang/test/Driver/hip-device-libs.hip

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
// RUN: --cuda-gpu-arch=gfx803 \
77
// RUN: --rocm-path=%S/Inputs/rocm \
88
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
9-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
9+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
1010

1111

1212
// Test subtarget with flushing off by ddefault.
1313
// RUN: %clang -### --target=x86_64-linux-gnu \
1414
// RUN: --cuda-gpu-arch=gfx900 \
1515
// RUN: --rocm-path=%S/Inputs/rocm \
1616
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
17-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR
17+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
1818

1919

2020
// Test explicit flag, opposite of target default.
@@ -23,7 +23,7 @@
2323
// RUN: -fgpu-flush-denormals-to-zero \
2424
// RUN: --rocm-path=%S/Inputs/rocm \
2525
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
26-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
26+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
2727

2828

2929
// Test explicit flag, opposite of target default.
@@ -32,7 +32,7 @@
3232
// RUN: -fno-gpu-flush-denormals-to-zero \
3333
// RUN: --rocm-path=%S/Inputs/rocm \
3434
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
35-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR
35+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
3636

3737

3838
// Test explicit flag, same as target default.
@@ -41,7 +41,7 @@
4141
// RUN: -fno-gpu-flush-denormals-to-zero \
4242
// RUN: --rocm-path=%S/Inputs/rocm \
4343
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
44-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR
44+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
4545

4646

4747
// Test explicit flag, same as target default.
@@ -50,7 +50,7 @@
5050
// RUN: -fgpu-flush-denormals-to-zero \
5151
// RUN: --rocm-path=%S/Inputs/rocm \
5252
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
53-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
53+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
5454

5555

5656
// Test last flag wins, not flushing
@@ -59,53 +59,53 @@
5959
// RUN: -fgpu-flush-denormals-to-zero -fno-gpu-flush-denormals-to-zero \
6060
// RUN: --rocm-path=%S/Inputs/rocm \
6161
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
62-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR
62+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
6363

6464

6565
// RUN: %clang -### --target=x86_64-linux-gnu \
6666
// RUN: --cuda-gpu-arch=gfx900 \
6767
// RUN: -fgpu-flush-denormals-to-zero -fno-gpu-flush-denormals-to-zero \
6868
// RUN: --rocm-path=%S/Inputs/rocm \
6969
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
70-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,NOFLUSHD,ROCMDIR
70+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
7171

7272

7373
// RUN: %clang -### --target=x86_64-linux-gnu \
7474
// RUN: --cuda-gpu-arch=gfx900 \
7575
// RUN: -fno-gpu-flush-denormals-to-zero -fgpu-flush-denormals-to-zero \
7676
// RUN: --rocm-path=%S/Inputs/rocm \
7777
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
78-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
78+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
7979

8080

8181
// RUN: %clang -### --target=x86_64-linux-gnu \
8282
// RUN: --cuda-gpu-arch=gfx803 \
8383
// RUN: -fno-gpu-flush-denormals-to-zero -fgpu-flush-denormals-to-zero \
8484
// RUN: --rocm-path=%S/Inputs/rocm \
8585
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
86-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
86+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
8787

8888
// Test finding device lib in resource dir
8989
// RUN: %clang -### --target=x86_64-linux-gnu \
9090
// RUN: --offload-arch=gfx803 -nogpuinc \
9191
// RUN: -resource-dir=%S/Inputs/rocm_resource_dir \
9292
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
93-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,RESDIR
93+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,RESDIR
9494

9595
// Test --hip-device-lib-path flag
9696
// RUN: %clang -### --target=x86_64-linux-gnu \
9797
// RUN: --cuda-gpu-arch=gfx803 -nogpuinc \
9898
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
9999
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
100-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
100+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
101101

102102
// Test --hip-device-lib-path wins over -resource-dir
103103
// RUN: %clang -### --target=x86_64-linux-gnu \
104104
// RUN: --cuda-gpu-arch=gfx803 -nogpuinc \
105105
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
106106
// RUN: -resource-dir=%S/Inputs/rocm_resource_dir \
107107
// RUN: %S/Inputs/hip_multiple_inputs/b.hip \
108-
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,FLUSHD,ROCMDIR
108+
// RUN: 2>&1 | FileCheck %s --check-prefixes=ALL,ROCMDIR
109109

110110
// Test environment variable HIP_DEVICE_LIB_PATH
111111
// RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode \
@@ -213,33 +213,26 @@
213213

214214
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]ockl.bc"
215215

216-
// FLUSHD-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_daz_opt_on.bc"
217-
// NOFLUSHD-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_daz_opt_off.bc"
218-
219216
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_unsafe_math_off.bc"
220217
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_finite_only_off.bc"
221218
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_correctly_rounded_sqrt_on.bc"
222219
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_wavefrontsize64_on.bc"
223220
// ALL-SAME: "-mlink-builtin-bitcode" "[[DEVICELIB_DIR]]oclc_isa_version_{{[0-9]+}}.bc"
224221
// INST-SAME: "-mlink-builtin-bitcode" "{{.*}}instrument.bc"
225222

226-
// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
227-
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
223+
// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
228224
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
229225
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
230226

231-
// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
232-
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
227+
// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
233228
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
234229
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
235230

236-
// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
237-
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
231+
// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
238232
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
239233
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
240234

241-
// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
242-
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
235+
// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
243236
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
244237
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_off.bc"
245238

clang/test/Driver/rocm-device-libs.cl

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: -x cl -mcpu=gfx900 \
77
// RUN: --rocm-path=%S/Inputs/rocm \
88
// RUN: %s \
9-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900-DEFAULT,GFX900,WAVE64 %s
9+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
1010

1111

1212

@@ -15,7 +15,7 @@
1515
// RUN: -x cl -mcpu=gfx803 \
1616
// RUN: --rocm-path=%S/Inputs/rocm \
1717
// RUN: %s \
18-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803-DEFAULT,GFX803,WAVE64 %s
18+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803,WAVE64 %s
1919

2020

2121

@@ -24,7 +24,7 @@
2424
// RUN: -x cl -mcpu=fiji \
2525
// RUN: --rocm-path=%S/Inputs/rocm \
2626
// RUN: %s \
27-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803-DEFAULT,GFX803,WAVE64 %s
27+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX803,WAVE64 %s
2828

2929

3030

@@ -33,15 +33,15 @@
3333
// RUN: -cl-denorms-are-zero \
3434
// RUN: --rocm-path=%S/Inputs/rocm \
3535
// RUN: %s \
36-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DAZ,GFX900,WAVE64 %s
36+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,GFX900,WAVE64 %s
3737

3838

3939
// RUN: %clang -### -target amdgcn-amd-amdhsa \
4040
// RUN: -x cl -mcpu=gfx803 \
4141
// RUN: -cl-denorms-are-zero \
4242
// RUN: --rocm-path=%S/Inputs/rocm \
4343
// RUN: %s \
44-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DAZ,GFX803,WAVE64 %s
44+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,GFX803,WAVE64 %s
4545

4646

4747

@@ -124,13 +124,13 @@
124124
// RUN: -x cl -mcpu=gfx900 \
125125
// RUN: --hip-device-lib-path=%S/Inputs/rocm/amdgcn/bitcode \
126126
// RUN: %S/opencl.cl \
127-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900-DEFAULT,GFX900,WAVE64 %s
127+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
128128

129129
// Test environment variable HIP_DEVICE_LIB_PATH
130130
// RUN: env HIP_DEVICE_LIB_PATH=%S/Inputs/rocm/amdgcn/bitcode %clang -### -target amdgcn-amd-amdhsa \
131131
// RUN: -x cl -mcpu=gfx900 \
132132
// RUN: %S/opencl.cl \
133-
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900-DEFAULT,GFX900,WAVE64 %s
133+
// RUN: 2>&1 | FileCheck --check-prefixes=COMMON,COMMON-DEFAULT,GFX900,WAVE64 %s
134134

135135
// RUN: %clang -### -target amdgcn-amd-amdhsa \
136136
// RUN: -x cl -mcpu=gfx908:xnack+ -fsanitize=address \
@@ -150,11 +150,6 @@
150150
// COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ocml.bc"
151151
// COMMON-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/ockl.bc"
152152

153-
// GFX900-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_off.bc"
154-
// GFX803-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc"
155-
// GFX700-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc"
156-
// COMMON-DAZ-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_daz_opt_on.bc"
157-
158153

159154
// COMMON-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_unsafe_math_off.bc"
160155
// COMMON-DEFAULT-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_off.bc"

0 commit comments

Comments
 (0)