<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 - llvm/include/llvm/ADT/APInt.h:1565: uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=42486">42486</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm/include/llvm/ADT/APInt.h:1565: uint64_t llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 && "Too many bits for uint64_t"' failed.
          </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: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lebedev.ri@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Was trying to resolve the backend question of <a href="https://reviews.llvm.org/D63992">https://reviews.llvm.org/D63992</a>
and wrote some tests.

define <1 x i128> @vector_i128_i128(<1 x i128> %x, <1 x i128> %y) nounwind {
  %t0 = add <1 x i128> %x, <i128 1>
  %t1 = add <1 x i128> %y, %t0
  ret <1 x i128> %t1
}

$ /build/llvm-build-GCC-release/bin/llc -mtriple=i686-unknown-unknown
-mattr=sse,sse2 -o - /tmp/test.ll 
        .text
        .file   "test.ll"
llc: /build/llvm/include/llvm/ADT/APInt.h:1565: uint64_t
llvm::APInt::getZExtValue() const: Assertion `getActiveBits() <= 64 && "Too
many bits for uint64_t"' failed.
Stack dump:
0.      Program arguments: /build/llvm-build-GCC-release/bin/llc
-mtriple=i686-unknown-unknown -mattr=sse,sse2 -o - /tmp/test.ll 
1.      Running pass 'Function Pass Manager' on module '/tmp/test.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@vector_i128_i128'
 #0 0x00007f7d7dfdd40a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/build/llvm/lib/Support/Unix/Signals.inc:494:22
 #1 0x00007f7d7dfdb204 llvm::sys::RunSignalHandlers()
/build/llvm/lib/Support/Signals.cpp:68:20
 #2 0x00007f7d7dfdb365 SignalHandler(int)
/build/llvm/lib/Support/Unix/Signals.inc:357:1
 #3 0x00007f7d7da22730 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
 #4 0x00007f7d7d54f7bb raise (/lib/x86_64-linux-gnu/libc.so.6+0x377bb)
 #5 0x00007f7d7d53a535 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22535)
 #6 0x00007f7d7d53a40f (/lib/x86_64-linux-gnu/libc.so.6+0x2240f)
 #7 0x00007f7d7d548102 (/lib/x86_64-linux-gnu/libc.so.6+0x30102)
 #8 0x00007f7d80c8f93a getTargetConstantBitsFromNode(llvm::SDValue, unsigned
int, llvm::APInt&, llvm::SmallVectorImpl<llvm::APInt>&, bool,
bool)::'lambda'(llvm::APInt&,
llvm::ArrayRef<llvm::APInt>)::operator()(llvm::APInt&,
llvm::ArrayRef<llvm::APInt>) const
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:5829:5
 #9 0x00007f7d80ca902f getTargetConstantBitsFromNode(llvm::SDValue, unsigned
int, llvm::APInt&, llvm::SmallVectorImpl<llvm::APInt>&, bool, bool)
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:5928:77
#10 0x00007f7d80cad8ad isConstantSplat(llvm::SDValue, llvm::APInt&)
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:6120:36
#11 0x00007f7d80cb33e5 combineIncDecVector(llvm::SDNode*, llvm::SelectionDAG&)
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:42974:23
#12 0x00007f7d80cc0c1d combineSub(llvm::SDNode*, llvm::SelectionDAG&,
llvm::X86Subtarget const&)
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:43374:45
#13 0x00007f7d80cf0f4a
llvm::X86TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const
/build/llvm/lib/Target/X86/X86ISelLowering.cpp:43970:64
#14 0x00007f7d7e18333b (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
/build/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1801:51
#15 0x00007f7d7e184f10 Run
/build/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1611:27
#16 0x00007f7d7e184f10 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
/build/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:20721:39
#17 0x00007f7d7e302a62 llvm::TimeRegion::~TimeRegion()
/build/llvm/include/llvm/Support/Timer.h:152:9
#18 0x00007f7d7e302a62 llvm::NamedRegionTimer::~NamedRegionTimer()
/build/llvm/include/llvm/Support/Timer.h:160:8
#19 0x00007f7d7e302a62 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
/build/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:816:61
#20 0x00007f7d7e307d83
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
/build/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1593:23
#21 0x00007f7d7e30984a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.916) /build/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:501:22
#22 0x00007f7d80c019c2 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
/build/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:196:5
#23 0x00007f7d7f12ff0f llvm::BitVector::operator|=(llvm::BitVector const&)
/build/llvm/include/llvm/ADT/BitVector.h:603:13
#24 0x00007f7d7f12ff0f
llvm::MachineFunctionProperties::set(llvm::MachineFunctionProperties const&)
/build/llvm/include/llvm/CodeGen/MachineFunction.h:178:23
#25 0x00007f7d7f12ff0f
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/build/llvm/lib/CodeGen/MachineFunctionPass.cpp:98:28
#26 0x00007f7d7f12ff0f
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/build/llvm/lib/CodeGen/MachineFunctionPass.cpp:38:6
#27 0x00007f7d7ec40478 llvm::FPPassManager::runOnFunction(llvm::Function&)
/build/llvm/lib/IR/LegacyPassManager.cpp:1648:40
#28 0x00007f7d7ec4059b
llvm::ilist_node_impl<llvm::ilist_detail::node_options<llvm::Function, false,
false, void> >::getNext() /build/llvm/include/llvm/ADT/ilist_node.h:66:66
#29 0x00007f7d7ec4059b
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, false,
false, void>, false, false>::operator++()
/build/llvm/include/llvm/ADT/ilist_iterator.h:158:25
#30 0x00007f7d7ec4059b llvm::FPPassManager::runOnModule(llvm::Module&)
/build/llvm/lib/IR/LegacyPassManager.cpp:1684:22
#31 0x00007f7d7ec3f8c8 runOnModule
/build/llvm/lib/IR/LegacyPassManager.cpp:1753:7
#32 0x00007f7d7ec3f8c8 llvm::legacy::PassManagerImpl::run(llvm::Module&)
/build/llvm/lib/IR/LegacyPassManager.cpp:1865:55
#33 0x0000562cf949811b compileModule /build/llvm/tools/llc/llc.cpp:604:66
#34 0x0000562cf949811b main /build/llvm/tools/llc/llc.cpp:355:35
#35 0x00007f7d7d53c09b __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2409b)
#36 0x0000562cf948702a _start (/build/llvm-build-GCC-release/bin/llc+0x1202a)
Aborted</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>