[LLVMbugs] [Bug 12529] New: include/llvm/CodeGen/MachineOperand.h:390: int64_t llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong MachineOperand accessor"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 11 23:37:33 PDT 2012


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

             Bug #: 12529
           Summary: include/llvm/CodeGen/MachineOperand.h:390: int64_t
                    llvm::MachineOperand::getImm() const: Assertion
                    `isImm() && "Wrong MachineOperand accessor"
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: vlee at freedesktop.org
                CC: brian.e.paul at gmail.com, jfonseca at vmware.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified


llvm-3.1svn r154579

Run piglit test fbo-alphatest-formats on Mesa llvmpipe.

$ ./bin/fbo-alphatest-formats -auto
Using test set: Core formats
Testing 3
Testing 4
Testing GL_RGB
Testing GL_RGBA
Testing GL_ALPHA
Testing GL_LUMINANCE
Testing GL_LUMINANCE_ALPHA
Testing GL_INTENSITY
Testing GL_ALPHA4
Testing GL_ALPHA8
Testing GL_ALPHA12
Testing GL_ALPHA16
Testing GL_LUMINANCE4
Testing GL_LUMINANCE8
Testing GL_LUMINANCE12
Testing GL_LUMINANCE16
Testing GL_LUMINANCE4_ALPHA4
Testing GL_LUMINANCE8_ALPHA8
Testing GL_LUMINANCE12_ALPHA12
Testing GL_LUMINANCE16_ALPHA16
Testing GL_INTENSITY4
Testing GL_INTENSITY8
Testing GL_INTENSITY12
Testing GL_INTENSITY16
Testing GL_R3_G3_B2
Testing GL_RGB4
Testing GL_RGB5
Testing GL_RGB8
Testing GL_RGB10
Testing GL_RGB12
fbo-alphatest-formats: llvm/include/llvm/CodeGen/MachineOperand.h:390: int64_t
llvm::MachineOperand::getImm() const: Assertion `isImm() && "Wrong
MachineOperand accessor"' failed.

(gdb) bt
#0  0x00007fdd86c1d445 in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fdd86c20bab in __GI_abort () at abort.c:91
#2  0x00007fdd86c1610e in __assert_fail_base (fmt=<optimized out>, 
    assertion=0x7fdd884e9a00 "isImm() && \"Wrong MachineOperand accessor\"", 
    file=0x7fdd884e9998 "llvm/include/llvm/CodeGen/MachineOperand.h",
line=<optimized out>, 
    function=<optimized out>) at assert.c:94
#3  0x00007fdd86c161b2 in __GI___assert_fail (
    assertion=0x7fdd884e9a00 "isImm() && \"Wrong MachineOperand accessor\"", 
    file=0x7fdd884e9998 "llvm/include/llvm/CodeGen/MachineOperand.h", line=390, 
    function=0x7fdd884f1340 "int64_t llvm::MachineOperand::getImm() const") at
assert.c:103
#4  0x00007fdd876b34de in llvm::MachineOperand::getImm() const [clone .part.18]
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#5  0x00007fdd87af2146 in (anonymous
namespace)::Emitter<llvm::JITCodeEmitter>::emitInstruction(llvm::MachineInstr&,
llvm::MCInstrDesc const*) () from
mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#6  0x00007fdd87af23ab in (anonymous
namespace)::Emitter<llvm::JITCodeEmitter>::runOnMachineFunction(llvm::MachineFunction&)
() from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#7  0x00007fdd8831ecef in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#8  0x00007fdd8832013d in llvm::FunctionPassManagerImpl::run(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#9  0x00007fdd8832030d in llvm::FunctionPassManager::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#10 0x00007fdd87db094e in llvm::JIT::jitTheFunction(llvm::Function*,
llvm::MutexGuard const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#11 0x00007fdd87db0d6c in llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*,
llvm::MutexGuard const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#12 0x00007fdd87db105f in llvm::JIT::getPointerToFunction(llvm::Function*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#13 0x00007fdd87dcf0b6 in
llvm::ExecutionEngine::getPointerToGlobal(llvm::GlobalValue const*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#14 0x00007fdd877229aa in generate_fragment (lp=0x173f120, shader=0x1a182e0,
variant=0x19baa60, partial_mask=1)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:812
#15 0x00007fdd87723564 in generate_variant (lp=0x173f120, shader=0x1a182e0,
key=0x7fff42edfa80)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:968
#16 0x00007fdd877246ea in llvmpipe_update_fs (lp=0x173f120) at
src/gallium/drivers/llvmpipe/lp_state_fs.c:1399
#17 0x00007fdd87720577 in llvmpipe_update_derived (llvmpipe=0x173f120)
    at src/gallium/drivers/llvmpipe/lp_state_derived.c:155
#18 0x00007fdd87707b63 in llvmpipe_draw_vbo (pipe=0x173f120,
info=0x7fff42edfcb0)
    at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:64
#19 0x00007fdd87884308 in st_draw_vbo (ctx=0x17e8b30, arrays=0x1861df8,
prims=0x7fff42edfd90, 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:1126
#20 0x00007fdd87922632 in vbo_draw_arrays (ctx=0x17e8b30, mode=7, start=0,
count=4, numInstances=1)
    at src/mesa/vbo/vbo_exec_array.c:619
#21 0x00007fdd87922771 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at
src/mesa/vbo/vbo_exec_array.c:651
#22 0x000000000046c6f9 in piglit_draw_rect_tex (x=-1, y=-1, w=2, h=2, tx=0,
ty=0, tw=1, th=1)
    at piglit/tests/util/piglit-util-gl.c:817
#23 0x000000000042635b in test_format (format=0x46e570, baseformat=0)
    at piglit/tests/fbo/fbo-alphatest-formats.c:240
#24 0x00000000004257bf in fbo_formats_display (test_format=0x425935
<test_format>)
    at piglit/tests/fbo/fbo-formats.h:611
#25 0x000000000042667c in piglit_display () at
piglit/tests/fbo/fbo-alphatest-formats.c:314
#26 0x0000000000426f71 in display () at piglit/tests/util/piglit-framework.c:56
#27 0x00007fdd872f8220 in fghRedrawWindow (window=0x173d8c0) at
freeglut_main.c:210
#28 fghcbDisplayWindow (window=0x173d8c0, enumerator=0x7fff42ee0080) at
freeglut_main.c:227
#29 0x00007fdd872fb939 in fgEnumWindows (enumCallback=0x7fdd872f8120
<fghcbDisplayWindow>, 
    enumerator=0x7fff42ee0080) at freeglut_structure.c:394
#30 0x00007fdd872f865a in fghDisplayAll () at freeglut_main.c:249
#31 glutMainLoopEvent () at freeglut_main.c:1450
#32 0x00007fdd872f8f65 in glutMainLoop () at freeglut_main.c:1498
#33 0x000000000042770e in main (argc=1, argv=0x7fff42ee03d8)
    at piglit/tests/util/piglit-framework.c:304

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list