Skip to content

Commit a776d72

Browse files
authored
Merge pull request #510 from hvdijk/macos-disable-tests
Fix x86 compiler, disable test for macOS.
2 parents acb9c17 + 10474f0 commit a776d72

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

modules/compiler/targets/host/source/info.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ void HostInfo::get(compiler::AddCompilerFn add_compiler) {
130130
HOST_CROSS_DEVICE_NAME_AARCH64));
131131
#endif
132132
#ifdef HOST_CROSS_X86
133-
add_compiler(getCrossCompilerInfo<host::arch::X86, HOST_OS>(
133+
add_compiler(getCrossCompilerInfo<host::arch::X86, host::os::LINUX>(
134134
HOST_CROSS_DEVICE_NAME_X86));
135135
#endif
136136
#ifdef HOST_CROSS_X86_64
137-
add_compiler(getCrossCompilerInfo<host::arch::X86_64, HOST_OS>(
137+
add_compiler(getCrossCompilerInfo<host::arch::X86_64, host::os::LINUX>(
138138
HOST_CROSS_DEVICE_NAME_X86_64));
139139
#endif
140140
#ifdef HOST_CROSS_RISCV32

source/cl/test/UnitCL/source/ktst_precision.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,9 @@ T Remquo7BitRef(T x, T y, cl_int &quo_out) {
107107
}
108108
} // namespace
109109

110-
#ifdef __arm__
111-
// TODO: CA-2730
112-
TEST_P(Execution, DISABLED_Precision_01_Pow_Func) {
113-
#elif defined(_WIN32)
114-
// TODO: CA-3492
110+
#if defined(__arm__) || defined(_WIN32) || defined(__APPLE__)
111+
// TODO This test has double precision reference results and we only pass when
112+
// we can pretend they are extended precision reference results.
115113
TEST_P(Execution, DISABLED_Precision_01_Pow_Func) {
116114
#else
117115
TEST_P(Execution, Precision_01_Pow_Func) {

0 commit comments

Comments
 (0)