<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - IR verifier failure for @llvm.arm.smlad intrinsic"
href="https://bugs.llvm.org/show_bug.cgi?id=45616">45616</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>IR verifier failure for @llvm.arm.smlad intrinsic
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>oliver.stannard@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23392" name="attach_23392" title="C reproducer">attachment 23392</a> <a href="attachment.cgi?id=23392&action=edit" title="C reproducer">[details]</a></span>
C reproducer
Compiling the attached C file for Armv8-a at -O3 causes this failure in the IR
verifier:
$ /work/llvm/install/bin/clang --target=arm-linux-gnueabihf -O3 -march=armv8-a
-c smald.c
Instruction does not dominate all uses!
%13 = call i32 @llvm.arm.smlad(i32 %3, i32 %3, i32 %12)
%12 = add i32 %mul12, %13
in function a
fatal error: error in backend: Broken function found, compilation aborted!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /work/llvm/install/bin/clang
--target=arm-linux-gnueabihf -O3 -march=armv8-a -c smald.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'smald.c'.
4. Running pass 'Module Verifier' on function '@a'
#0 0x0000000004dc87b4 PrintStackTraceSignalHandler(void*)
(/work/llvm/install/bin/clang+0x4dc87b4)
#1 0x0000000004dc636e llvm::sys::RunSignalHandlers()
(/work/llvm/install/bin/clang+0x4dc636e)
#2 0x0000000004dc7942 llvm::sys::CleanupOnSignal(unsigned long)
(/work/llvm/install/bin/clang+0x4dc7942)
#3 0x0000000004d4cab3 (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
(/work/llvm/install/bin/clang+0x4d4cab3)
#4 0x0000000004d4ca2f llvm::CrashRecoveryContext::HandleExit(int)
(/work/llvm/install/bin/clang+0x4d4ca2f)
#5 0x0000000004dc256e (/work/llvm/install/bin/clang+0x4dc256e)
#6 0x0000000002f5e995 (/work/llvm/install/bin/clang+0x2f5e995)
#7 0x0000000004d51ed4 llvm::report_fatal_error(llvm::Twine const&, bool)
(/work/llvm/install/bin/clang+0x4d51ed4)
#8 0x0000000004d51dc8 (/work/llvm/install/bin/clang+0x4d51dc8)
#9 0x00000000046f850f (/work/llvm/install/bin/clang+0x46f850f)
#10 0x000000000467c0fe llvm::FPPassManager::runOnFunction(llvm::Function&)
(/work/llvm/install/bin/clang+0x467c0fe)
#11 0x000000000467c478 llvm::FPPassManager::runOnModule(llvm::Module&)
(/work/llvm/install/bin/clang+0x467c478)
#12 0x000000000467cacd llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/work/llvm/install/bin/clang+0x467cacd)
#13 0x0000000004fd2983 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/work/llvm/install/bin/clang+0x4fd2983)
#14 0x000000000573d178
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/work/llvm/install/bin/clang+0x573d178)
#15 0x00000000065dfe93 clang::ParseAST(clang::Sema&, bool, bool)
(/work/llvm/install/bin/clang+0x65dfe93)
#16 0x0000000005683d60 clang::FrontendAction::Execute()
(/work/llvm/install/bin/clang+0x5683d60)
#17 0x00000000055dee34
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/work/llvm/install/bin/clang+0x55dee34)
#18 0x00000000057366b4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/work/llvm/install/bin/clang+0x57366b4)
#19 0x0000000002f5e575 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/work/llvm/install/bin/clang+0x2f5e575)
#20 0x0000000002f5c7b4 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
(/work/llvm/install/bin/clang+0x2f5c7b4)
#21 0x00000000054ae762 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__cxx11::basic_string<char, std::char_traits<char>,</span >
std::allocator<char> >*, bool*) const::$_1>(long)
(/work/llvm/install/bin/clang+0x54ae762)
#22 0x0000000004d4c9d1
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/work/llvm/install/bin/clang+0x4d4c9d1)
#23 0x00000000054add3d
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__cxx11::basic_string<char, std::char_traits<char>,</span >
std::allocator<char> >*, bool*) const (/work/llvm/install/bin/clang+0x54add3d)
#24 0x000000000547a89d
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const (/work/llvm/install/bin/clang+0x547a89d)
#25 0x000000000547ac8d
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/work/llvm/install/bin/clang+0x547ac8d)
#26 0x00000000054925eb
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/work/llvm/install/bin/clang+0x54925eb)
#27 0x0000000002f5bdd6 main (/work/llvm/install/bin/clang+0x2f5bdd6)
#28 0x00007fe720782b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#29 0x0000000002f5902a _start (/work/llvm/install/bin/clang+0x2f5902a)
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 11.0.0
Target: arm-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /work/llvm/install/bin
clang-8: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/smald-9cbe0c.c
clang-8: note: diagnostic msg: /tmp/smald-9cbe0c.sh
clang-8: note: diagnostic msg:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>