Skip to content

Conversation

@ranapratap55
Copy link
Contributor

Removing the 'e' handling for the amdgcn builtins as we decided to use _Float16 for both HIP/C++ and OpenCL

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

🐧 Linux x64 Test Results

  • 84904 tests passed
  • 1142 tests skipped
  • 3 tests failed

Failed Tests

(click on a test name to see its output)

Clang

Clang.CodeGen/builtins-extended-image.c
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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c -emit-llvm -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c
# 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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c -emit-llvm -o -
# .---command stderr------------
# | Unknown builtin type letter!
# | UNREACHABLE executed at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12406!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | 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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c -emit-llvm -o -
# | 1.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c:758:55: current parser token '('
# | 2.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c:756:120: parsing function body 'test_amdgcn_image_sample_lz_1d_v4f16_f32'
# | 3.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c:756:120: in compound statement ('{}')
# |  #0 0x0000000008d12c38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# |  #1 0x0000000008d10345 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# |  #2 0x0000000008d13a01 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# |  #3 0x00007b096af4b330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007b096afa4b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007b096af4b27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007b096af2e8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x0000000008c7fcef (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x8c7fcef)
# |  #8 0x000000000bb475c2 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12544:7
# |  #9 0x000000000bb46953 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12556:5
# | #10 0x000000000bb476a3 clang::ASTContext::GetBuiltinType(unsigned int, clang::ASTContext::GetBuiltinTypeError&, unsigned int*) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12691:13
# | #11 0x000000000b21b2ac clang::Sema::LazilyCreateBuiltin(clang::IdentifierInfo*, unsigned int, clang::Scope*, bool, clang::SourceLocation) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaDecl.cpp:2415:24
# | #12 0x000000000b4f5508 clang::Sema::LookupBuiltin(clang::LookupResult&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:981:24
# | #13 0x000000000b503ebd clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:2315:31
# | #14 0x000000000b359ffb wasNotFoundInCurrentInstantiation /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Lookup.h:496:23
# | #15 0x000000000b359ffb clang::Sema::ActOnIdExpression(clang::Scope*, clang::CXXScopeSpec&, clang::SourceLocation, clang::UnqualifiedId&, bool, bool, clang::CorrectionCandidateCallback*, bool, clang::Token*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaExpr.cpp:2793:11
# | #16 0x000000000af4b3c2 clang::Parser::ParseCastExpression(clang::CastParseKind, bool, bool&, clang::TypoCorrectionTypeBehavior, bool, bool*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:1015:19
# | #17 0x000000000af45b59 ParseCastExpression /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:567:20
# | #18 0x000000000af45b59 clang::Parser::ParseAssignmentExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:90:7
# | #19 0x000000000af45a59 clang::Parser::ParseExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:49:10
# | #20 0x000000000afda655 isInvalid /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Ownership.h:200:41
# | #21 0x000000000afda655 clang::Parser::ParseReturnStatement() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2363:11
# | #22 0x000000000afd4418 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:308:11
# | #23 0x000000000afd2a54 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:77:20
# | #24 0x000000000afdccf1 clang::Parser::ParseCompoundStatementBody(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:1162:11
# | #25 0x000000000afddcc5 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2430:21
# | #26 0x000000000af289d0 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:0
# | #27 0x000000000af96047 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:0
# | #28 0x000000000af27a4a clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:10
# | #29 0x000000000af27266 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:1209:12
# | #30 0x000000000af26217 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:14
# | #31 0x000000000af24500 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:745:10
# | #32 0x000000000af188ae clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:169:5
# | #33 0x00000000099d1486 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #34 0x000000000993909d getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #35 0x000000000993909d operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #36 0x000000000993909d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #37 0x0000000009ac2b7c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #38 0x00000000060502d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #39 0x000000000604c025 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:225:12
# | #40 0x000000000604b08d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #41 0x000000000605c077 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #42 0x00007b096af301ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #43 0x00007b096af3028b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #44 0x0000000006049a65 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x6049a65)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/builtins-extended-image.c
# `-----------------------------
# error: command failed with exit status: 2

--

Clang.SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 1
/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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts -S -verify=expected -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts -S -verify=expected -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl
# .---command stderr------------
# | Unknown builtin type letter!
# | UNREACHABLE executed at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12406!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | 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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx1100 -target-feature +extended-image-insts -S -verify=expected -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl
# | 1.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl:116:55: current parser token '('
# | 2.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl:114:120: parsing function body 'test_amdgcn_image_sample_lz_1d_v4f16_f32'
# | 3.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl:114:120: in compound statement ('{}')
# |  #0 0x0000000008d12c38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# |  #1 0x0000000008d10345 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# |  #2 0x0000000008d13a01 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# |  #3 0x00007bd03c65f330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007bd03c6b8b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007bd03c65f27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007bd03c6428ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x0000000008c7fcef (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x8c7fcef)
# |  #8 0x000000000bb475c2 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12544:7
# |  #9 0x000000000bb46953 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12556:5
# | #10 0x000000000bb476a3 clang::ASTContext::GetBuiltinType(unsigned int, clang::ASTContext::GetBuiltinTypeError&, unsigned int*) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12691:13
# | #11 0x000000000b21b2ac clang::Sema::LazilyCreateBuiltin(clang::IdentifierInfo*, unsigned int, clang::Scope*, bool, clang::SourceLocation) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaDecl.cpp:2415:24
# | #12 0x000000000b4f5508 clang::Sema::LookupBuiltin(clang::LookupResult&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:981:24
# | #13 0x000000000b503ebd clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:2315:31
# | #14 0x000000000b359ffb wasNotFoundInCurrentInstantiation /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Lookup.h:496:23
# | #15 0x000000000b359ffb clang::Sema::ActOnIdExpression(clang::Scope*, clang::CXXScopeSpec&, clang::SourceLocation, clang::UnqualifiedId&, bool, bool, clang::CorrectionCandidateCallback*, bool, clang::Token*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaExpr.cpp:2793:11
# | #16 0x000000000af4b3c2 clang::Parser::ParseCastExpression(clang::CastParseKind, bool, bool&, clang::TypoCorrectionTypeBehavior, bool, bool*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:1015:19
# | #17 0x000000000af45b59 ParseCastExpression /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:567:20
# | #18 0x000000000af45b59 clang::Parser::ParseAssignmentExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:90:7
# | #19 0x000000000af45a59 clang::Parser::ParseExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:49:10
# | #20 0x000000000afda655 isInvalid /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Ownership.h:200:41
# | #21 0x000000000afda655 clang::Parser::ParseReturnStatement() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2363:11
# | #22 0x000000000afd4418 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:308:11
# | #23 0x000000000afd2a54 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:77:20
# | #24 0x000000000afdccf1 clang::Parser::ParseCompoundStatementBody(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:1162:11
# | #25 0x000000000afddcc5 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2430:21
# | #26 0x000000000af289d0 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:0
# | #27 0x000000000af96047 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:0
# | #28 0x000000000af27a4a clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:10
# | #29 0x000000000af27266 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:1209:12
# | #30 0x000000000af26217 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:14
# | #31 0x000000000af24500 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:745:10
# | #32 0x000000000af188ae clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:169:5
# | #33 0x00000000099d1486 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #34 0x000000000993909d getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #35 0x000000000993909d operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #36 0x000000000993909d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #37 0x0000000009ac2b7c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #38 0x00000000060502d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #39 0x000000000604c025 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:225:12
# | #40 0x000000000604b08d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #41 0x000000000605c077 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #42 0x00007bd03c6441ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #43 0x00007bd03c64428b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #44 0x0000000006049a65 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x6049a65)
# `-----------------------------
# error: command failed with exit status: -6

--

Clang.SemaOpenCL/builtins-extended-image-param-gfx942-err.cl
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 1
/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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx942 -verify=GFX94 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx942 -verify=GFX94 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl
# .---command stderr------------
# | Unknown builtin type letter!
# | UNREACHABLE executed at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12406!
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | 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/22/include -nostdsysteminc -triple amdgcn-- -target-cpu gfx942 -verify=GFX94 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl
# | 1.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl:116:55: current parser token '('
# | 2.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl:114:120: parsing function body 'test_amdgcn_image_sample_lz_1d_v4f16_f32'
# | 3.	/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl:114:120: in compound statement ('{}')
# |  #0 0x0000000008d12c38 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:834:13
# |  #1 0x0000000008d10345 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:105:18
# |  #2 0x0000000008d13a01 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:426:38
# |  #3 0x000078d01fe5f330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x000078d01feb8b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x000078d01fe5f27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x000078d01fe428ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x0000000008c7fcef (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x8c7fcef)
# |  #8 0x000000000bb475c2 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12544:7
# |  #9 0x000000000bb46953 DecodeTypeFromStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12556:5
# | #10 0x000000000bb476a3 clang::ASTContext::GetBuiltinType(unsigned int, clang::ASTContext::GetBuiltinTypeError&, unsigned int*) const /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/AST/ASTContext.cpp:12691:13
# | #11 0x000000000b21b2ac clang::Sema::LazilyCreateBuiltin(clang::IdentifierInfo*, unsigned int, clang::Scope*, bool, clang::SourceLocation) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaDecl.cpp:2415:24
# | #12 0x000000000b4f5508 clang::Sema::LookupBuiltin(clang::LookupResult&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:981:24
# | #13 0x000000000b503ebd clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaLookup.cpp:2315:31
# | #14 0x000000000b359ffb wasNotFoundInCurrentInstantiation /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Lookup.h:496:23
# | #15 0x000000000b359ffb clang::Sema::ActOnIdExpression(clang::Scope*, clang::CXXScopeSpec&, clang::SourceLocation, clang::UnqualifiedId&, bool, bool, clang::CorrectionCandidateCallback*, bool, clang::Token*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Sema/SemaExpr.cpp:2793:11
# | #16 0x000000000af4b3c2 clang::Parser::ParseCastExpression(clang::CastParseKind, bool, bool&, clang::TypoCorrectionTypeBehavior, bool, bool*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:1015:19
# | #17 0x000000000af45b59 ParseCastExpression /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:567:20
# | #18 0x000000000af45b59 clang::Parser::ParseAssignmentExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:90:7
# | #19 0x000000000af45a59 clang::Parser::ParseExpression(clang::TypoCorrectionTypeBehavior) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseExpr.cpp:49:10
# | #20 0x000000000afda655 isInvalid /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Sema/Ownership.h:200:41
# | #21 0x000000000afda655 clang::Parser::ParseReturnStatement() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2363:11
# | #22 0x000000000afd4418 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::ParsedAttributes&, clang::ParsedAttributes&, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:308:11
# | #23 0x000000000afd2a54 clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 24u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*, clang::LabelDecl*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:77:20
# | #24 0x000000000afdccf1 clang::Parser::ParseCompoundStatementBody(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:1162:11
# | #25 0x000000000afddcc5 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseStmt.cpp:2430:21
# | #26 0x000000000af289d0 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:0
# | #27 0x000000000af96047 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, clang::DeclaratorContext, clang::ParsedAttributes&, clang::Parser::ParsedTemplateInfo&, clang::SourceLocation*, clang::Parser::ForRangeInit*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:0
# | #28 0x000000000af27a4a clang::Parser::ParseDeclOrFunctionDefInternal(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec&, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:10
# | #29 0x000000000af27266 clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*, clang::AccessSpecifier) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:1209:12
# | #30 0x000000000af26217 clang::Parser::ParseExternalDeclaration(clang::ParsedAttributes&, clang::ParsedAttributes&, clang::ParsingDeclSpec*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:0:14
# | #31 0x000000000af24500 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, clang::Sema::ModuleImportState&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/Parser.cpp:745:10
# | #32 0x000000000af188ae clang::ParseAST(clang::Sema&, bool, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Parse/ParseAST.cpp:169:5
# | #33 0x00000000099d1486 clang::FrontendAction::Execute() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1316:10
# | #34 0x000000000993909d getPtr /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:278:42
# | #35 0x000000000993909d operator bool /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/Support/Error.h:241:16
# | #36 0x000000000993909d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1003:23
# | #37 0x0000000009ac2b7c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:310:25
# | #38 0x00000000060502d3 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/cc1_main.cpp:301:15
# | #39 0x000000000604c025 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:225:12
# | #40 0x000000000604b08d clang_main(int, char**, llvm::ToolContext const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/tools/driver/driver.cpp:268:12
# | #41 0x000000000605c077 main /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:17:10
# | #42 0x000078d01fe441ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #43 0x000078d01fe4428b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #44 0x0000000006049a65 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang+0x6049a65)
# `-----------------------------
# error: command failed with exit status: -6

--

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.

@shiltian shiltian marked this pull request as ready for review December 3, 2025 19:04
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Dec 3, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 3, 2025

@llvm/pr-subscribers-clang

Author: Rana Pratap Reddy (ranapratap55)

Changes

Removing the 'e' handling for the amdgcn builtins as we decided to use _Float16 for both HIP/C++ and OpenCL


Full diff: https://github.com/llvm/llvm-project/pull/170443.diff

2 Files Affected:

  • (modified) clang/include/clang/Basic/Builtins.def (-1)
  • (modified) clang/lib/AST/ASTContext.cpp (+2-6)
diff --git a/clang/include/clang/Basic/Builtins.def b/clang/include/clang/Basic/Builtins.def
index 3a5b72e20afab..b856ad145824d 100644
--- a/clang/include/clang/Basic/Builtins.def
+++ b/clang/include/clang/Basic/Builtins.def
@@ -43,7 +43,6 @@
 //  SJ -> sigjmp_buf
 //  K -> ucontext_t
 //  p -> pid_t
-//  e -> _Float16 for HIP/C++ and __fp16 for OpenCL
 //  . -> "...".  This may only occur at the end of the function list.
 //
 // Types may be prefixed with the following modifiers:
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index b359fc8350375..a04dcabdaa6b6 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -12402,12 +12402,8 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
 
   // Read the base type.
   switch (*Str++) {
-  default: llvm_unreachable("Unknown builtin type letter!");
-  case 'e':
-    assert(HowLong == 0 && !Signed && !Unsigned &&
-           "Bad modifiers used with 'e'!");
-    Type = Context.getLangOpts().OpenCL ? Context.HalfTy : Context.Float16Ty;
-    break;
+  default:
+    llvm_unreachable("Unknown builtin type letter!");
   case 'x':
     assert(HowLong == 0 && !Signed && !Unsigned &&
            "Bad modifiers used with 'x'!");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants