[clang] [clang][AMDGPU] Widen ballot for read_exec_lo/hi to wavefront size (PR #212813)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 3 01:36:13 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 90639 tests passed
* 1745 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGenOpenCL/builtins-amdgcn-wave32.cl</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
/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/24/include -nostdsysteminc -cl-std=CL2.0 -triple amdgpu-unknown-unknown -target-feature +wavefrontsize32 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# 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/24/include -nostdsysteminc -cl-std=CL2.0 -triple amdgpu-unknown-unknown -target-feature +wavefrontsize32 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# note: command had no output on stdout or stderr
# RUN: at line 3
/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/24/include -nostdsysteminc -cl-std=CL2.0 -triple amdgpu10.10-unknown-unknown -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# 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/24/include -nostdsysteminc -cl-std=CL2.0 -triple amdgpu10.10-unknown-unknown -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# .---command stderr------------
# | clang: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Instructions.cpp:3105: static CastInst *llvm::CastInst::Create(Instruction::CastOps, Value *, Type *, const Twine &, InsertPosition): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
# | Stack dump:
# | 0. Program arguments: /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/24/include -nostdsysteminc -cl-std=CL2.0 -triple amdgpu10.10-unknown-unknown -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# | 1. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl:42:1: current parser token 'void'
# | 2. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl:36:6: LLVM IR generation of declaration 'test_read_exec'
# | 3. /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl:36:6: Generating code for declaration 'test_read_exec'
# | #0 0x00000000093339fb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:928:13
# | #1 0x00000000093308c1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000933481b SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x0000000009334668 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2072:8
# | #4 0x0000000009334668 __find_if<const int *, __gnu_cxx::__ops::_Iter_equals_val<const int> > /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:2117:14
# | #5 0x0000000009334668 find<const int *, int> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_algo.h:3897:14
# | #6 0x0000000009334668 is_contained<const int (&)[10], int> /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1953:12
# | #7 0x0000000009334668 SignalHandlerTerminate(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:511:7
# | #8 0x00007b28f9e4a330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #9 0x00007b28f9ea3b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #10 0x00007b28f9e4a27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #11 0x00007b28f9e2d8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #12 0x00007b28f9e2d81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #13 0x00007b28f9e40517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #14 0x0000000008c6eff3 llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::InsertPosition) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/Instructions.cpp:3125:5
# | #15 0x0000000009f06971 CreateTrunc /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2113:22
# | #16 0x0000000009f06971 EmitAMDGCNBallotForExec(clang::CodeGen::CodeGenFunction&, clang::CallExpr const*, llvm::Type*, llvm::Type*, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp:0:0
# | #17 0x0000000009b46460 clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::GlobalDecl, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:7162:14
# | #18 0x00000000098d29b2 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::CallBase**) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExpr.cpp:6519:5
# | #19 0x00000000098f3e4a isScalar /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGValue.h:64:41
# | #20 0x00000000098f3e4a getScalarVal /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGValue.h:73:12
# | #21 0x00000000098f3e4a (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:685:36
# | #22 0x00000000098dfb2b (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:496:52
# | #23 0x00000000098fdf4a (anonymous namespace)::ScalarExprEmitter::VisitCastExpr(clang::CastExpr*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:3081:33
# | #24 0x00000000098ebca0 Visit /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:496:52
# | #25 0x00000000098ebca0 (anonymous namespace)::ScalarExprEmitter::VisitBinAssign(clang::BinaryOperator const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:5488:13
# | #26 0x00000000098dfa1d Visit /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:496:52
# | #27 0x00000000098dfa1d clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExprScalar.cpp:6200:8
# | #28 0x00000000098a39b9 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGExpr.cpp:261:5
# | #29 0x000000000988db07 GetInsertBlock /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/IRBuilder.h:175:47
# | #30 0x000000000988db07 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmt.cpp:132:42
# | #31 0x0000000009895611 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CGStmt.cpp:583:10
# | #32 0x0000000009877d43 getLangOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.h:2204:51
# | #33 0x0000000009877d43 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:1643:7
# | #34 0x0000000009721199 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:7031:5
# | #35 0x0000000009718e46 ~TimeTraceScope /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/TimeProfiler.h:200:9
# | #36 0x0000000009718e46 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:5028:3
# | #37 0x000000000971dc66 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:4790:5
# | #38 0x0000000009717821 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenModule.cpp:7978:5
# | #39 0x0000000009cc53ac (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/ModuleBuilder.cpp:200:20
# | #40 0x0000000009cbca36 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:181:22
# | #41 0x000000000b71af5a clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:169:17
# | #42 0x000000000a23f116 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1350:10
# | #43 0x000000000a1ae7c9 getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #44 0x000000000a1ae7c9 operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #45 0x000000000a1ae7c9 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1035:23
# | #46 0x000000000a306048 get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1666:16
# | #47 0x000000000a306048 _M_get /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1363:66
# | #48 0x000000000a306048 operator-> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1357:9
# | #49 0x000000000a306048 getFrontendOpts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Frontend/CompilerInstance.h:314:12
# | #50 0x000000000a306048 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:332:14
# | #51 0x000000000640e4ac cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:296:13
# | #52 0x000000000640a1e3 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:229:12
# | #53 0x00000000064091af clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:277:12
# | #54 0x000000000641a6cd main /home/gha/actions-runner/_work/llvm-project/llvm
# | ...
# `---data was truncated (10240/10566) (change limit with -D output_limit=N)
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -enable-var-scope /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-wave32.cl
# `-----------------------------
# 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/212813
More information about the cfe-commits
mailing list