[libc-commits] [libc] [llvm] [libc][math] Add emulated f128 support for ddivf128 (PR #242651)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Sun Nov 15 05:27:35 PST 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `libc,utils` at step 3 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/39451

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-libc-runtime.py ...' (failure)
...
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumbf16_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__ (356 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumbf16_test.__build__ (357 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumf128_test.__build__ (358 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.atanhf_test.__build__ (359 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.bf16add_test.__build__ (360 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.cospif16_test.__build__ (361 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.cospif_test.__build__ (362 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumf_test.__build__ (363 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximuml_test.__build__ (364 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.daddf128_test.__build__ (365 of 994)
FAIL: libc :: src/math/smoke/libc.test.src.math.smoke.ddivf128_test.__build__ (366 of 994)
******************** TEST 'libc :: src/math/smoke/libc.test.src.math.smoke.ddivf128_test.__build__' FAILED ********************
[==========] Running 5 tests from 1 test suite.
[ RUN      ] LlvmLibcDdivf128Test.SpecialNumbers
[       OK ] LlvmLibcDdivf128Test.SpecialNumbers (13 us)
[ RUN      ] LlvmLibcDdivf128Test.DivisionByZero
[       OK ] LlvmLibcDdivf128Test.DivisionByZero (5 us)
[ RUN      ] LlvmLibcDdivf128Test.InvalidOperations
Display last 3 kernels launched:
Kernel 0: '_end'
Kernel 1: '_start'
Kernel 2: '_begin'
Use 'OFFLOAD_TRACK_NUM_KERNEL_LAUNCH_TRACES=<num>' to adjust the number of shown stack traces (0 now, up to 8)
OFFLOAD ERROR: memory access fault by GPU 2 (agent 0x648f1e37dad0) at virtual address (nil). Reasons: Unknown (0)
Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
 #0 0x000073f56b62f979 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/libLLVMSupport.so.24.0git+0x22f979)
 #1 0x000073f56b62c66c llvm::sys::RunSignalHandlers() (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/libLLVMSupport.so.24.0git+0x22c66c)
 #2 0x000073f56b62c7d6 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x000073f56ac424b0 (/lib/x86_64-linux-gnu/libc.so.6+0x424b0)
 #4 0x000073f56ac9691c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x000073f56ac9691c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x000073f56ac9691c pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x000073f56ac42406 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x000073f56ac287f3 abort ./stdlib/abort.c:81:7
 #9 0x000073f56a3b6fde llvm::omp::target::plugin::ErrorReporter::reportMemoryAccessError(llvm::omp::target::plugin::GenericDeviceTy&, void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/../lib/x86_64-unknown-linux-gnu/libLLVMOffload.so+0xc6fde)
#10 0x000073f56a3b5465 llvm::omp::target::plugin::AMDGPUPluginTy::eventHandler(hsa_amd_event_s const*, void*) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/../lib/x86_64-unknown-linux-gnu/libLLVMOffload.so+0xc5465)
#11 0x000073f5634839e9 (/opt/rocm/lib/libhsa-runtime64.so.1+0x839e9)
#12 0x000073f563481d9c (/opt/rocm/lib/libhsa-runtime64.so.1+0x81d9c)
#13 0x000073f563430bab (/opt/rocm/lib/libhsa-runtime64.so.1+0x30bab)
#14 0x000073f56ac949e3 start_thread ./nptl/pthread_create.c:442:8
#15 0x000073f56ad26860 ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:83:0

********************
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminbf16_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__ (367 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminbf16_test.__build__ (368 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fdimbf16_test.__build__ (369 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fdimf128_test.__build__ (370 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminf16_test.__build__ (371 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminf80_test.__build__ (372 of 994)
Step 12 (run check-libc-amdgpu-amd-amdhsa) failure: run check-libc-amdgpu-amd-amdhsa (failure)
...
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumbf16_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__ (356 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumbf16_test.__build__ (357 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumf128_test.__build__ (358 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.atanhf_test.__build__ (359 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.bf16add_test.__build__ (360 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.cospif16_test.__build__ (361 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.cospif_test.__build__ (362 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximumf_test.__build__ (363 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fmaximuml_test.__build__ (364 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.daddf128_test.__build__ (365 of 994)
FAIL: libc :: src/math/smoke/libc.test.src.math.smoke.ddivf128_test.__build__ (366 of 994)
******************** TEST 'libc :: src/math/smoke/libc.test.src.math.smoke.ddivf128_test.__build__' FAILED ********************
[==========] Running 5 tests from 1 test suite.
[ RUN      ] LlvmLibcDdivf128Test.SpecialNumbers
[       OK ] LlvmLibcDdivf128Test.SpecialNumbers (13 us)
[ RUN      ] LlvmLibcDdivf128Test.DivisionByZero
[       OK ] LlvmLibcDdivf128Test.DivisionByZero (5 us)
[ RUN      ] LlvmLibcDdivf128Test.InvalidOperations
Display last 3 kernels launched:
Kernel 0: '_end'
Kernel 1: '_start'
Kernel 2: '_begin'
Use 'OFFLOAD_TRACK_NUM_KERNEL_LAUNCH_TRACES=<num>' to adjust the number of shown stack traces (0 now, up to 8)
OFFLOAD ERROR: memory access fault by GPU 2 (agent 0x648f1e37dad0) at virtual address (nil). Reasons: Unknown (0)
Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
 #0 0x000073f56b62f979 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/libLLVMSupport.so.24.0git+0x22f979)
 #1 0x000073f56b62c66c llvm::sys::RunSignalHandlers() (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/libLLVMSupport.so.24.0git+0x22c66c)
 #2 0x000073f56b62c7d6 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x000073f56ac424b0 (/lib/x86_64-linux-gnu/libc.so.6+0x424b0)
 #4 0x000073f56ac9691c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
 #5 0x000073f56ac9691c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
 #6 0x000073f56ac9691c pthread_kill ./nptl/pthread_kill.c:89:10
 #7 0x000073f56ac42406 gsignal ./signal/../sysdeps/posix/raise.c:27:6
 #8 0x000073f56ac287f3 abort ./stdlib/abort.c:81:7
 #9 0x000073f56a3b6fde llvm::omp::target::plugin::ErrorReporter::reportMemoryAccessError(llvm::omp::target::plugin::GenericDeviceTy&, void*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/../lib/x86_64-unknown-linux-gnu/libLLVMOffload.so+0xc6fde)
#10 0x000073f56a3b5465 llvm::omp::target::plugin::AMDGPUPluginTy::eventHandler(hsa_amd_event_s const*, void*) (/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/../lib/../lib/x86_64-unknown-linux-gnu/libLLVMOffload.so+0xc5465)
#11 0x000073f5634839e9 (/opt/rocm/lib/libhsa-runtime64.so.1+0x839e9)
#12 0x000073f563481d9c (/opt/rocm/lib/libhsa-runtime64.so.1+0x81d9c)
#13 0x000073f563430bab (/opt/rocm/lib/libhsa-runtime64.so.1+0x30bab)
#14 0x000073f56ac949e3 start_thread ./nptl/pthread_create.c:442:8
#15 0x000073f56ad26860 ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:83:0

********************
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminbf16_test.__NO_MISC_MATH_BASIC_OPS_OPT.__build__ (367 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminbf16_test.__build__ (368 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fdimbf16_test.__build__ (369 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fdimf128_test.__build__ (370 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminf16_test.__build__ (371 of 994)
PASS: libc :: src/math/smoke/libc.test.src.math.smoke.fminf80_test.__build__ (372 of 994)

```

</details>

https://github.com/llvm/llvm-project/pull/242651


More information about the libc-commits mailing list