Skip to content

Commit 4a704db

Browse files
authored
merge main into amd-staging (llvm#1654)
2 parents cf1435d + 34dca9a commit 4a704db

File tree

6 files changed

+71
-75
lines changed

6 files changed

+71
-75
lines changed

clang/lib/Driver/ToolChains/AMDGPU.cpp

Lines changed: 37 additions & 23 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") {
@@ -673,10 +669,6 @@ amdgpu::dlr::getCommonDeviceLibNames(
673669
// If --hip-device-lib is not set, add the default bitcode libraries.
674670
// TODO: There are way too many flags that change this. Do we need to check
675671
// them all?
676-
bool DAZ = DriverArgs.hasFlag(
677-
options::OPT_fgpu_flush_denormals_to_zero,
678-
options::OPT_fno_gpu_flush_denormals_to_zero,
679-
toolchains::AMDGPUToolChain::getDefaultDenormsAreZeroForTarget(Kind));
680672
bool FiniteOnly = DriverArgs.hasFlag(
681673
options::OPT_ffinite_math_only, options::OPT_fno_finite_math_only, false);
682674
bool UnsafeMathOpt =
@@ -696,7 +688,7 @@ amdgpu::dlr::getCommonDeviceLibNames(
696688
SanArgs.needsAsanRt();
697689

698690
return RocmInstallation.getCommonBitcodeLibs(
699-
DriverArgs, LibDeviceFile, Wave64, DAZ, FiniteOnly, UnsafeMathOpt,
691+
DriverArgs, LibDeviceFile, Wave64, FiniteOnly, UnsafeMathOpt,
700692
FastRelaxedMath, CorrectSqrt, ABIVer, GPUSan, isOpenMP);
701693
}
702694

@@ -945,10 +937,6 @@ void ROCMToolChain::addClangTargetOptions(
945937
return;
946938

947939
bool Wave64 = isWave64(DriverArgs, Kind);
948-
// TODO: There are way too many flags that change this. Do we need to check
949-
// them all?
950-
bool DAZ = DriverArgs.hasArg(options::OPT_cl_denorms_are_zero) ||
951-
getDefaultDenormsAreZeroForTarget(Kind);
952940
bool FiniteOnly = DriverArgs.hasArg(options::OPT_cl_finite_math_only);
953941

954942
bool UnsafeMathOpt =
@@ -969,7 +957,7 @@ void ROCMToolChain::addClangTargetOptions(
969957

970958
// Add the generic set of libraries.
971959
BCLibs.append(RocmInstallation->getCommonBitcodeLibs(
972-
DriverArgs, LibDeviceFile, Wave64, DAZ, FiniteOnly, UnsafeMathOpt,
960+
DriverArgs, LibDeviceFile, Wave64, FiniteOnly, UnsafeMathOpt,
973961
FastRelaxedMath, CorrectSqrt, ABIVer, GPUSan, false));
974962

975963
for (auto [BCFile, Internalize] : BCLibs) {
@@ -1010,9 +998,8 @@ bool RocmInstallationDetector::checkCommonBitcodeLibs(
1010998
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
1011999
RocmInstallationDetector::getCommonBitcodeLibs(
10121000
const llvm::opt::ArgList &DriverArgs, StringRef LibDeviceFile, bool Wave64,
1013-
bool DAZ, bool FiniteOnly, bool UnsafeMathOpt, bool FastRelaxedMath,
1014-
bool CorrectSqrt, DeviceLibABIVersion ABIVer, bool GPUSan,
1015-
bool isOpenMP) const {
1001+
bool FiniteOnly, bool UnsafeMathOpt, bool FastRelaxedMath, bool CorrectSqrt,
1002+
DeviceLibABIVersion ABIVer, bool GPUSan, bool isOpenMP) const {
10161003
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12> BCLibs;
10171004

10181005
auto AddBCLib = [&](ToolChain::BitCodeLibraryInfo BCLib,
@@ -1037,7 +1024,6 @@ RocmInstallationDetector::getCommonBitcodeLibs(
10371024
AddBCLib(getOCKLPath());
10381025
else if (GPUSan && isOpenMP)
10391026
AddBCLib(getOCKLPath(), false);
1040-
AddBCLib(getDenormalsAreZeroPath(DAZ));
10411027
AddBCLib(getUnsafeMathPath(UnsafeMathOpt || FastRelaxedMath));
10421028
AddBCLib(getFiniteOnlyPath(FiniteOnly || FastRelaxedMath));
10431029
AddBCLib(getCorrectlyRoundedSqrtPath(CorrectSqrt));
@@ -1061,11 +1047,39 @@ llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
10611047
ROCMToolChain::getCommonDeviceLibNames(const llvm::opt::ArgList &DriverArgs,
10621048
const std::string &GPUArch,
10631049
bool isOpenMP) const {
1064-
RocmInstallationDetector RocmInstallation(getDriver(), getTriple(),
1065-
DriverArgs, true, true);
1066-
return amdgpu::dlr::getCommonDeviceLibNames(
1067-
DriverArgs, getSanitizerArgs(DriverArgs), getDriver(), GPUArch, isOpenMP,
1068-
RocmInstallation);
1050+
auto Kind = llvm::AMDGPU::parseArchAMDGCN(GPUArch);
1051+
const StringRef CanonArch = llvm::AMDGPU::getArchNameAMDGCN(Kind);
1052+
1053+
StringRef LibDeviceFile = RocmInstallation->getLibDeviceFile(CanonArch);
1054+
auto ABIVer = DeviceLibABIVersion::fromCodeObjectVersion(
1055+
getAMDGPUCodeObjectVersion(getDriver(), DriverArgs));
1056+
bool noGPULib = DriverArgs.hasArg(options::OPT_offloadlib);
1057+
if (!RocmInstallation->checkCommonBitcodeLibs(CanonArch, LibDeviceFile,
1058+
ABIVer, noGPULib))
1059+
return {};
1060+
1061+
// If --hip-device-lib is not set, add the default bitcode libraries.
1062+
bool FiniteOnly = DriverArgs.hasFlag(
1063+
options::OPT_ffinite_math_only, options::OPT_fno_finite_math_only, false);
1064+
bool UnsafeMathOpt =
1065+
DriverArgs.hasFlag(options::OPT_funsafe_math_optimizations,
1066+
options::OPT_fno_unsafe_math_optimizations, false);
1067+
bool FastRelaxedMath = DriverArgs.hasFlag(options::OPT_ffast_math,
1068+
options::OPT_fno_fast_math, false);
1069+
bool CorrectSqrt = DriverArgs.hasFlag(
1070+
options::OPT_fhip_fp32_correctly_rounded_divide_sqrt,
1071+
options::OPT_fno_hip_fp32_correctly_rounded_divide_sqrt, true);
1072+
bool Wave64 = isWave64(DriverArgs, Kind);
1073+
1074+
// GPU Sanitizer currently only supports ASan and is enabled through host
1075+
// ASan.
1076+
bool GPUSan = DriverArgs.hasFlag(options::OPT_fgpu_sanitize,
1077+
options::OPT_fno_gpu_sanitize, true) &&
1078+
getSanitizerArgs(DriverArgs).needsAsanRt();
1079+
1080+
return RocmInstallation->getCommonBitcodeLibs(
1081+
DriverArgs, LibDeviceFile, Wave64, FiniteOnly, UnsafeMathOpt,
1082+
FastRelaxedMath, CorrectSqrt, ABIVer, GPUSan, isOpenMP);
10691083
}
10701084

10711085
bool AMDGPUToolChain::shouldSkipSanitizeOption(

clang/lib/Driver/ToolChains/ROCm.h

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ class RocmInstallationDetector {
137137
ConditionalLibrary WavefrontSize64;
138138
ConditionalLibrary FiniteOnly;
139139
ConditionalLibrary UnsafeMath;
140-
ConditionalLibrary DenormalsAreZero;
141140
ConditionalLibrary CorrectlyRoundedSqrt;
142141

143142
// Maps ABI version to library path. The version number is in the format of
@@ -152,8 +151,7 @@ class RocmInstallationDetector {
152151
bool allGenericLibsValid() const {
153152
return !OCML.empty() && !OCKL.empty() && !OpenCL.empty() &&
154153
WavefrontSize64.isValid() && FiniteOnly.isValid() &&
155-
UnsafeMath.isValid() && DenormalsAreZero.isValid() &&
156-
CorrectlyRoundedSqrt.isValid();
154+
UnsafeMath.isValid() && CorrectlyRoundedSqrt.isValid();
157155
}
158156

159157
void scanLibDevicePath(llvm::StringRef Path);
@@ -175,12 +173,12 @@ class RocmInstallationDetector {
175173

176174
/// Get file paths of default bitcode libraries common to AMDGPU based
177175
/// toolchains.
178-
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12> getCommonBitcodeLibs(
179-
const llvm::opt::ArgList &DriverArgs, StringRef LibDeviceFile,
180-
bool Wave64, bool DAZ, bool FiniteOnly, bool UnsafeMathOpt,
181-
bool FastRelaxedMath, bool CorrectSqrt, DeviceLibABIVersion ABIVer,
182-
bool GPUSan, bool isOpenMP) const;
183-
176+
llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
177+
getCommonBitcodeLibs(const llvm::opt::ArgList &DriverArgs,
178+
StringRef LibDeviceFile, bool Wave64, bool FiniteOnly,
179+
bool UnsafeMathOpt, bool FastRelaxedMath,
180+
bool CorrectSqrt, DeviceLibABIVersion ABIVer,
181+
bool GPUSan, bool isOpenMP) const;
184182
/// Check file paths of default bitcode libraries common to AMDGPU based
185183
/// toolchains. \returns false if there are invalid or missing files.
186184
bool checkCommonBitcodeLibs(StringRef GPUArch, StringRef LibDeviceFile,
@@ -246,10 +244,6 @@ class RocmInstallationDetector {
246244
return UnsafeMath.get(Enabled);
247245
}
248246

249-
StringRef getDenormalsAreZeroPath(bool Enabled) const {
250-
return DenormalsAreZero.get(Enabled);
251-
}
252-
253247
StringRef getCorrectlyRoundedSqrtPath(bool Enabled) const {
254248
return CorrectlyRoundedSqrt.get(Enabled);
255249
}

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 \
@@ -212,33 +212,26 @@
212212

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

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

225-
// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
226-
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
222+
// FAST: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
227223
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
228224
// FAST-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
229225

230-
// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
231-
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
226+
// FINITE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
232227
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_on.bc"
233228
// FINITE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
234229

235-
// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
236-
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
230+
// UNSAFE: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_on.bc"
237231
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
238232
// UNSAFE-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_on.bc"
239233

240-
// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_daz_opt_off.bc"
241-
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
234+
// DIVSQRT: "-mlink-builtin-bitcode" "{{.*}}oclc_unsafe_math_off.bc"
242235
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_finite_only_off.bc"
243236
// DIVSQRT-SAME: "-mlink-builtin-bitcode" "{{.*}}oclc_correctly_rounded_sqrt_off.bc"
244237

0 commit comments

Comments
 (0)