[clang] [OFFLOAD] Introduce libdevice function declarartions for future use for math OpenMP wrappers (PR #182215)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 21:15:56 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 52620 tests passed
* 968 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.Headers/openmp_device_math_isnan.cpp</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=spirv64-nvidia-cuda -emit-llvm-bc C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=spirv64-nvidia-cuda -emit-llvm-bc 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm-bc C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -fopenmp -triple powerpc64le-unknown-unknown -fopenmp-targets=amdgcn-amd-amdhsa -emit-llvm-bc 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -include __clang_openmp_device_functions.h -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/openmp_wrappers -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -fopenmp -triple nvptx64-nvidia-cuda -aux-triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp --check-prefix=BOOL_RETURN
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -include __clang_openmp_device_functions.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/openmp_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -fopenmp -triple nvptx64-nvidia-cuda -aux-triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' -fopenmp-is-target-device -fopenmp-host-ir-file-path 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' --check-prefix=BOOL_RETURN
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -x c++ -include __clang_openmp_device_functions.h -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/openmp_wrappers -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include -fopenmp -triple spirv64 -aux-triple powerpc64le-unknown-unknown -fopenmp-targets=spirv64 -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp -fopenmp-is-target-device -fopenmp-host-ir-file-path C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp --check-prefix=SPIRV_BOOL_RETURN
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -x c++ -include __clang_openmp_device_functions.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/openmp_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -fopenmp -triple spirv64 -aux-triple powerpc64le-unknown-unknown -fopenmp-targets=spirv64 -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' -fopenmp-is-target-device -fopenmp-host-ir-file-path 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Headers\Output\openmp_device_math_isnan.cpp.tmp-ppc-host.bc' -o -
# .---command stderr------------
# | In file included from <built-in>:1:
# | In file included from C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/openmp_wrappers\__clang_openmp_device_functions.h:65:
# | C:\_work\llvm-project\llvm-project\build\lib\clang\23\include\__clang_spirv_libdevice_declares.h:19:28: error: unknown type name 'uint32_t'
# | 19 | _CLC_OVERLOAD _CLC_CONSTFN uint32_t __spirv_ocl_s_abs(int);
# | | ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\23\include\__clang_spirv_libdevice_declares.h:88:28: error: unknown type name '_uint64_t'
# | 88 | _CLC_OVERLOAD _CLC_CONSTFN _uint64_t __spirv_ocl_s_abs(long);
# | | ^
# | C:\_work\llvm-project\llvm-project\build\lib\clang\23\include\__clang_spirv_libdevice_declares.h:90:54: error: unknown type name 'flodoubleat'
# | 90 | _CLC_OVERLOAD _CLC_CONSTFN double __spirv_ocl_lgamma(flodoubleat);
# | | ^
# | 3 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp' --check-prefix=SPIRV_BOOL_RETURN
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\Headers\openmp_device_math_isnan.cpp --check-prefix=SPIRV_BOOL_RETURN
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/182215
More information about the cfe-commits
mailing list