[llvm-bugs] [Bug 30909] New: LLVM ICE aarch64 -Ofast in Post-RA

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 3 16:03:32 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30909

            Bug ID: 30909
           Summary: LLVM ICE aarch64 -Ofast in Post-RA
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: brzycki at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17552
  --> https://llvm.org/bugs/attachment.cgi?id=17552&action=edit
preprocessed source

I received the following crash and backtrace:

/tmp/bmr $
/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/aarch64-local-linux-gnu-clang
-Ofast -c c.i -o /dev/null
unimplemented reg-to-reg copy
UNREACHABLE executed at
/tmp/tmp.t13VWd7L7x/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:2299!
#0 0x00007f262c0251b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMSupport.so.40+0xdf1b5)
#1 0x00007f262c022f0e llvm::sys::RunSignalHandlers()
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMSupport.so.40+0xdcf0e)
#2 0x00007f262c023072 SignalHandler(int)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMSupport.so.40+0xdd072)
#3 0x00007f262f510330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007f2629ec6c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f2629eca028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f262bfba47a
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMSupport.so.40+0x7447a)
#7 0x00007f263123608d
llvm::AArch64InstrInfo::copyPhysReg(llvm::MachineBasicBlock&,
llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>, llvm::DebugLoc
const&, unsigned int, unsigned int, bool) const
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMAArch64CodeGen.so.40+0xdf08d)
#8 0x00007f262ff1880b (anonymous
namespace)::ExpandPostRA::runOnMachineFunction(llvm::MachineFunction&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMCodeGen.so.40+0xe280b)
#9 0x00007f262fff9005 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMCodeGen.so.40+0x1c3005)
#10 0x00007f262d3e6083 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMCore.so.40+0x164083)
#11 0x00007f262d3e614c llvm::FPPassManager::runOnModule(llvm::Module&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMCore.so.40+0x16414c)
#12 0x00007f262d3e5c1d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libLLVMCore.so.40+0x163c1d)
#13 0x00007f262ea1c756 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
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> >)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangCodeGen.so.40+0x77756)
#14 0x00007f262ebd997e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangCodeGen.so.40+0x23497e)
#15 0x00007f262737d238 clang::ParseAST(clang::Sema&, bool, bool)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/../lib/libclangParse.so.40+0x2c238)
#16 0x00007f262ebd5137 clang::CodeGenAction::ExecuteAction()
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangCodeGen.so.40+0x230137)
#17 0x00007f262e3c6006 clang::FrontendAction::Execute()
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangFrontend.so.40+0xb3006)
#18 0x00007f262e38f136
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangFrontend.so.40+0x7c136)
#19 0x00007f262e1118bb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/libclangFrontendTool.so.40+0x38bb)
#20 0x000000000040fff8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/clang-4.0+0x40fff8)
#21 0x000000000040e81c main
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/clang-4.0+0x40e81c)
#22 0x00007f2629eb1f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#23 0x000000000040ac89 _start
(/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/clang-4.0+0x40ac89)
Stack dump:
0.      Program arguments:
/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/clang-4.0 -cc1 -triple
aarch64-local-linux-gnu -emit-obj -disable-free -main-file-name c.i
-mrelocation-model static -mthread-model posix -mdisable-fp-elim
-menable-no-infs -menable-no-nans -menable-unsafe-fp-math -fno-signed-zeros
-freciprocal-math -fno-trapping-math -ffp-contract=fast -ffast-math
-masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic
-target-feature +neon -target-abi aapcs -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file /dev/null.gcno -resource-dir
/cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin/../lib/clang/4.0.0
-Ofast -fdebug-compilation-dir /tmp/bmr -ferror-limit 19 -fmessage-length 167
-fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o /dev/null -x cpp-output c.i
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'c.i'.
4.      Running pass 'Post-RA pseudo instruction expansion pass' on function
'@timevar_print'
clang-4.0: error: unable to execute command: Aborted (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0
Target: aarch64-local-linux-gnu
Thread model: posix
InstalledDir: /cc_test/llvm-4.0/2016-10-18-23-30-07-f630ecb-master/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161103/fb01f7b3/attachment-0001.html>


More information about the llvm-bugs mailing list