[clang] [CIR][AMDGPU] Add support for AMDGCN div_fixup builtins (PR #197468)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 08:57:49 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 89839 tests passed
* 837 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/CodeGenHIP/builtins-amdgcn.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -std=c++11 -fclangir -target-cpu tahiti -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/builtins-amdgcn.hip.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -std=c++11 -fclangir -target-cpu tahiti -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/builtins-amdgcn.hip.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:94:55: error: function definition is not allowed here
# | 94 | __device__ void test_readlane(int* out, int a, int b) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:102:53: error: function definition is not allowed here
# | 102 | __device__ void test_readfirstlane(int* out, int a) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:110:82: error: function definition is not allowed here
# | 110 | __device__ void test_dispatch_ptr(__attribute__((address_space(4))) void ** out) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:112:2: error: expected '}'
# | 112 | }
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:87:79: note: to match this '{'
# | 87 | __device__ void test_div_fixup_f64(double* out, double a, double b, double c) {
# | | ^
# | 4 errors generated when compiling for tahiti.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/CodeGenHIP/builtins-amdgcn.hip</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -std=c++11 -fclangir -target-cpu tahiti -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/builtins-amdgcn.hip.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple amdgcn-amd-amdhsa -x hip -std=c++11 -fclangir -target-cpu tahiti -fcuda-is-device -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenHIP/Output/builtins-amdgcn.hip.tmp.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:94:55: error: function definition is not allowed here
# | 94 | __device__ void test_readlane(int* out, int a, int b) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:102:53: error: function definition is not allowed here
# | 102 | __device__ void test_readfirstlane(int* out, int a) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:110:82: error: function definition is not allowed here
# | 110 | __device__ void test_dispatch_ptr(__attribute__((address_space(4))) void ** out) {
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:112:2: error: expected '}'
# | 112 | }
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenHIP/builtins-amdgcn.hip:87:79: note: to match this '{'
# | 87 | __device__ void test_div_fixup_f64(double* out, double a, double b, double c) {
# | | ^
# | 4 errors generated when compiling for tahiti.
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/197468
More information about the cfe-commits
mailing list