[LLVMbugs] [Bug 15948] New: SelectionDAG.cpp:994: llvm::SDValue llvm::SelectionDAG::getConstant(const llvm::ConstantInt&, llvm::EVT, bool): Assertion `Elt->getBitWidth() == EltVT.getSizeInBits() && "APInt size does not match type size!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 9 17:45:21 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15948

            Bug ID: 15948
           Summary: SelectionDAG.cpp:994: llvm::SDValue
                    llvm::SelectionDAG::getConstant(const
                    llvm::ConstantInt&, llvm::EVT, bool): Assertion
                    `Elt->getBitWidth() == EltVT.getSizeInBits() && "APInt
                    size does not match type size!"' failed.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: regression
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: vlee at freedesktop.org
                CC: brian.e.paul at gmail.com, jfonseca at vmware.com,
                    llvmbugs at cs.uiuc.edu, sroland at vmware.com
    Classification: Unclassified

Run piglit test glsl-fs-loop on Mesa llvmpipe.

$ ./bin/glsl-fs-loop -auto
glsl-fs-loop: SelectionDAG.cpp:994: llvm::SDValue
llvm::SelectionDAG::getConstant(const llvm::ConstantInt&, llvm::EVT, bool):
Assertion `Elt->getBitWidth() == EltVT.getSizeInBits() && "APInt size does not
match type size!"' failed.
Aborted (core dumped)

(gdb) bt
#0  0x00007fa75bca0425 in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fa75bca3b8b in __GI_abort () at abort.c:91
#2  0x00007fa75bc990ee in __assert_fail_base (fmt=<optimized out>, 
    assertion=0x7fa75a3011e0 "Elt->getBitWidth() == EltVT.getSizeInBits() &&
\"APInt size does not match type size!\"", 
    file=0x7fa75a2fec53 "SelectionDAG.cpp", line=<optimized out>,
function=<optimized out>) at assert.c:94
#3  0x00007fa75bc99192 in __GI___assert_fail (
    assertion=0x7fa75a3011e0 "Elt->getBitWidth() == EltVT.getSizeInBits() &&
\"APInt size does not match type size!\"", 
    file=0x7fa75a2fec53 "SelectionDAG.cpp", line=994, 
    function=0x7fa75a3075a0 "llvm::SDValue
llvm::SelectionDAG::getConstant(const llvm::ConstantInt&, llvm::EVT, bool)") at
assert.c:103
#4  0x00007fa75982dba5 in llvm::SelectionDAG::getConstant(llvm::ConstantInt
const&, llvm::EVT, bool) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#5  0x00007fa75982dc06 in llvm::SelectionDAG::getConstant(llvm::APInt const&,
llvm::EVT, bool) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#6  0x00007fa7597ded5d in (anonymous
namespace)::DAGCombiner::visitXOR(llvm::SDNode*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#7  0x00007fa7597fab89 in (anonymous
namespace)::DAGCombiner::visit(llvm::SDNode*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#8  0x00007fa7597fd070 in (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#9  0x00007fa7598007d1 in llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AliasAnalysis&, llvm::CodeGenOpt::Level) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#10 0x00007fa759889f78 in llvm::SelectionDAGISel::CodeGenAndEmitDAG() ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#11 0x00007fa759892dac in
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#12 0x00007fa759894810 in
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#13 0x00007fa75a065f0f in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#14 0x00007fa75a066047 in llvm::FunctionPassManagerImpl::run(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#15 0x00007fa75a0661fd in llvm::FunctionPassManager::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#16 0x00007fa7599de8be in llvm::JIT::jitTheFunction(llvm::Function*,
llvm::MutexGuard const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#17 0x00007fa7599def8c in llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*,
llvm::MutexGuard const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#18 0x00007fa7599df287 in llvm::JIT::getPointerToFunction(llvm::Function*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#19 0x00007fa759668e55 in gallivm_jit_function (gallivm=0xc3aac0,
func=0xcc1210) at src/gallium/auxiliary/gallivm/lp_bld_init.c:649
#20 0x00007fa7592a5b4e in generate_variant (lp=0xb23c10, shader=0xc3b870,
key=0x7fffa52e25b0) at src/gallium/drivers/llvmpipe/lp_state_fs.c:2200
#21 0x00007fa7592a6f29 in llvmpipe_update_fs (lp=0xb23c10) at
src/gallium/drivers/llvmpipe/lp_state_fs.c:2698
#22 0x00007fa75929e7f7 in llvmpipe_update_derived (llvmpipe=0xb23c10) at
src/gallium/drivers/llvmpipe/lp_state_derived.c:156
#23 0x00007fa7592836d1 in llvmpipe_draw_vbo (pipe=0xb23c10,
info=0x7fffa52e28d0) at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:64
#24 0x00007fa759596ef6 in cso_draw_vbo (cso=0xbfa2f0, info=0x7fffa52e28d0) at
src/gallium/auxiliary/cso_cache/cso_context.c:1406
#25 0x00007fa759401dfd in st_draw_vbo (ctx=0xb95890, prims=0x7fffa52e29a0,
nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3, 
    tfb_vertcount=0x0) at src/mesa/state_tracker/st_draw.c:286
#26 0x00007fa7594c1179 in vbo_draw_arrays (ctx=0xb95890, mode=7, start=0,
count=4, numInstances=1, baseInstance=0) at src/mesa/vbo/vbo_exec_array.c:624
#27 0x00007fa7594c1b40 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at
src/mesa/vbo/vbo_exec_array.c:776
#28 0x00007fa75c09b089 in stub_glDrawArrays (mode=7, first=0, count=4) at
piglit/tests/util/generated_dispatch.c:5350
#29 0x00007fa75c0f6161 in piglit_draw_rect (x=5, y=5, w=20, h=20) at
piglit/tests/util/piglit-util-gl.c:872
#30 0x0000000000400edc in piglit_display () at
piglit/tests/shaders/glsl-fs-loop.c:78
#31 0x00007fa75c08f418 in display () at
piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
#32 0x00007fa75ba44137 in fghRedrawWindow (window=0xb200c0) at
freeglut_main.c:210
#33 fghcbDisplayWindow (window=0xb200c0, enumerator=0x7fffa52e2bb0) at
freeglut_main.c:227
#34 0x00007fa75ba47889 in fgEnumWindows (enumCallback=0x7fa75ba440d0
<fghcbDisplayWindow>, enumerator=0x7fffa52e2bb0) at freeglut_structure.c:394
#35 0x00007fa75ba445fa in fghDisplayAll () at freeglut_main.c:249
#36 glutMainLoopEvent () at freeglut_main.c:1450
#37 0x00007fa75ba44f05 in glutMainLoop () at freeglut_main.c:1498
#38 0x00007fa75c08f64d in run_test (gl_fw=0x7fa75c362bc0, argc=1,
argv=0x7fffa52e2f78)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:142
#39 0x00007fa75c08d736 in piglit_gl_test_run (argc=1, argv=0x7fffa52e2f78,
config=0x7fffa52e2e60)
    at piglit/tests/util/piglit-framework-gl.c:127
#40 0x0000000000400d60 in main (argc=2, argv=0x7fffa52e2f78) at
piglit/tests/shaders/glsl-fs-loop.c:48

363160a6be82df343fa60aa09d9d8f8f44605529 is the first bad commit
commit 363160a6be82df343fa60aa09d9d8f8f44605529
Author: David Majnemer <david.majnemer at gmail.com>
Date:   Wed May 8 06:44:42 2013 +0000

    DAGCombiner: Simplify inverted bit tests

    Fold (xor (and x, y), y) -> (and (not x), y)

    This removes an opportunity for a constant to appear twice.


    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181395
91177308-0d34-0410-b5e6-96231b3b80d8

:040000 040000 897796b3cc061e3aaf135752593b2259e3698939
1d469f1eea3a36043955bb52825a85e699f91183 M    lib
:040000 040000 12620e147cd1904881f6827819542ea4b42e0e3d
abe4b19b04925ed21df471c952ed0f4e360716d5 M    test
bisect run success

-- 
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/20130510/b979e2e4/attachment.html>


More information about the llvm-bugs mailing list