<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 - "Cannot emit physreg copy instruction" at lib/Target/X86/X86InstrInfo.cpp:6707"
   href="https://bugs.llvm.org/show_bug.cgi?id=33560">33560</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Cannot emit physreg copy instruction" at lib/Target/X86/X86InstrInfo.cpp:6707
          </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>All
          </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: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>babokin@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang trunk, rev306063, x86_64.

I see quite a few of fails like this one. Looks like a recent regression.

<span class="quote">> cat f.cpp</span >
extern long long int var_42;
extern signed char var_45;
extern const unsigned long long int var_10;
extern signed char var_33;
void foo() {
  var_42 = -~0;
  char a(!var_45);
  if (a - var_42 - var_10)
    var_33 = a;
}
vs-skx-1:~/yarpgen/yarpgen/test_runjune22_reduce/result/clang/compfail/S_3874212480
<span class="quote">> clang++ -O2 -c f.cpp</span >
Cannot emit physreg copy instruction
UNREACHABLE executed at
/home/dybaboki/llvm/llvm-trunk-20170622/lib/Target/X86/X86InstrInfo.cpp:6707!
#0 0x00000000012fd11f llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x12fd11f)
#1 0x00000000012fd426 SignalHandler(int)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x12fd426)
#2 0x00007f01a44f9370 __restore_rt (/lib64/libpthread.so.0+0xf370)
#3 0x00007f01a30f11d7 __GI_raise (/lib64/libc.so.6+0x351d7)
#4 0x00007f01a30f28c8 __GI_abort (/lib64/libc.so.6+0x368c8)
#5 0x00000000012be10b
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x12be10b)
#6 0x000000000095ce62
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x95ce62)
#7 0x0000000000d014e5 (anonymous
namespace)::ExpandPostRA::runOnMachineFunction(llvm::MachineFunction&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0xd014e5)
#8 0x0000000000bdf564 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0xbdf564)
#9 0x0000000000ebc5af llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0xebc5af)
#10 0x0000000000ebc803 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0xebc803)
#11 0x0000000000ebcd05 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0xebcd05)
#12 0x000000000147e0ef 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> >)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x147e0ef)
#13 0x0000000001b157b7
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x1b157b7)
#14 0x0000000001f77ab6 clang::ParseAST(clang::Sema&, bool, bool)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x1f77ab6)
#15 0x00000000017f27a8 clang::FrontendAction::Execute()
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x17f27a8)
#16 0x00000000017b7411
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x17b7411)
#17 0x000000000187702a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x187702a)
#18 0x000000000076c6df cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x76c6df)
#19 0x000000000076a45e main
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x76a45e)
#20 0x00007f01a30ddb35 __libc_start_main (/lib64/libc.so.6+0x21b35)
#21 0x00000000007677c7 _start
(/home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0+0x7677c7)
Stack dump:
0.      Program arguments: /home/dybaboki/llvm/bin-trunk-20170622/bin/clang-5.0
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
f.cpp -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file
/home/dybaboki/yarpgen/yarpgen/test_runjune22_reduce/result/clang/compfail/S_3874212480/f.gcno
-resource-dir /home/dybaboki/llvm/bin-trunk-20170622/lib/clang/5.0.0
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
-internal-isystem /usr/local/include -internal-isystem
/home/dybaboki/llvm/bin-trunk-20170622/lib/clang/5.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdeprecated-macro -fdebug-compilation-dir
/home/dybaboki/yarpgen/yarpgen/test_runjune22_reduce/result/clang/compfail/S_3874212480
-ferror-limit 19 -fmessage-length 272 -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o f.o -x c++ f.cpp
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'f.cpp'.
4.      Running pass 'Post-RA pseudo instruction expansion pass' on function
'@_Z3foov'
<...></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>