<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Instructions.cpp:1848: static llvm::BinaryOperator* llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion `S1->getType() == S2->getType() && "Cannot create binary operator"
   href="http://llvm.org/bugs/show_bug.cgi?id=19718">19718</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Instructions.cpp:1848: static llvm::BinaryOperator* llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*, llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion `S1->getType() == S2->getType() && "Cannot create binary operator
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>Keywords</th>
          <td>regression
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>brian.e.paul@gmail.com, jfonseca@vmware.com, llvmbugs@cs.uiuc.edu, sroland@vmware.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 83b4ec03e77645c537d540a12253b3492bad4b59 (master 10.3.0-devel)
llvm: 3.5.0svn r208509

Run piglit glsl-fs-lots-of-tex on Mesa llvmpipe.

$ ./bin/shader_runner tests/shaders/glsl-fs-lots-of-tex.shader_test -auto
shader_runner: Instructions.cpp:1848: static llvm::BinaryOperator*
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion `S1->getType()
== S2->getType() && "Cannot create binary operator with two operands of
differing type!"' failed.

(gdb) bt
#0  0x00007f546ee69f79 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f546ee6d388 in __GI_abort () at abort.c:89
#2  0x00007f546ee62e36 in __assert_fail_base (fmt=0x7f546efb4718 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x7f546d0e1e98 "S1->getType() == S2->getType() &&
\"Cannot create binary operator with two operands of differing type!\"",
file=file@entry=0x7f546d0e08c8 "Instructions.cpp", line=line@entry=1848, 
    function=function@entry=0x7f546d0e58e0
<llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, llvm::Twine const&, llvm::Instruction*)::__PRETTY_FUNCTION__>
"static llvm::BinaryOperator*
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, const llvm::Twine&, llvm::Instruction*)") at assert.c:92
#3  0x00007f546ee62ee2 in __GI___assert_fail (
    assertion=0x7f546d0e1e98 "S1->getType() == S2->getType() && \"Cannot create
binary operator with two operands of differing type!\"", file=0x7f546d0e08c8
"Instructions.cpp", line=1848, 
    function=0x7f546d0e58e0
<llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, llvm::Twine const&, llvm::Instruction*)::__PRETTY_FUNCTION__>
"static llvm::BinaryOperator*
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, const llvm::Twine&, llvm::Instruction*)") at assert.c:101
#4  0x00007f546ca5c0fc in
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, llvm::Twine const&, llvm::Instruction*) () from
mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#5  0x00007f546c7123b2 in llvm::IRBuilder<true, llvm::TargetFolder,
llvm::InstCombineIRInserter>::CreateBinOp(llvm::Instruction::BinaryOps,
llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::MDNode*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#6  0x00007f546c712bcb in CreateBinOpAsGiven(llvm::BinaryOperator&,
llvm::Value*, llvm::Value*, llvm::IRBuilder<true, llvm::TargetFolder,
llvm::InstCombineIRInserter>*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#7  0x00007f546c718581 in
llvm::InstCombiner::SimplifyVectorOp(llvm::BinaryOperator&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#8  0x00007f546c7580eb in llvm::InstCombiner::visitFMul(llvm::BinaryOperator&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#9  0x00007f546c71d79e in llvm::InstCombiner::DoOneIteration(llvm::Function&,
unsigned int) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#10 0x00007f546c71e4c6 in llvm::InstCombiner::runOnFunction(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#11 0x00007f546ca74bb0 in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#12 0x00007f546ca74cd3 in
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#13 0x00007f546ca74e54 in
llvm::legacy::FunctionPassManager::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#14 0x00007f546c9cac09 in LLVMRunFunctionPassManager ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#15 0x00007f546c0cc4bb in gallivm_optimize_function (gallivm=0x17c0360,
func=0x183d910)
    at src/gallium/auxiliary/gallivm/lp_bld_init.c:582
#16 0x00007f546c0cc520 in gallivm_verify_function (gallivm=0x17c0360,
func=0x183d910)
    at src/gallium/auxiliary/gallivm/lp_bld_init.c:610
#17 0x00007f546bc9cbab in generate_fragment (lp=0x1383f10, shader=0x1455a80,
variant=0x17d69b0, partial_mask=1)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:2440
#18 0x00007f546bc9d6e3 in generate_variant (lp=0x1383f10, shader=0x1455a80,
key=0x7fffb7796e30)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:2613
#19 0x00007f546bc9ed1f in llvmpipe_update_fs (lp=0x1383f10) at
src/gallium/drivers/llvmpipe/lp_state_fs.c:3171
#20 0x00007f546bc94b79 in llvmpipe_update_derived (llvmpipe=0x1383f10)
    at src/gallium/drivers/llvmpipe/lp_state_derived.c:186
#21 0x00007f546bc6f210 in llvmpipe_draw_vbo (pipe=0x1383f10,
info=0x7fffb7797150)
    at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:64
#22 0x00007f546c00bde8 in cso_draw_vbo (cso=0x141d2a0, info=0x7fffb7797150)
    at src/gallium/auxiliary/cso_cache/cso_context.c:1428
#23 0x00007f546be1a14b in st_draw_vbo (ctx=0x7f546f95c010,
prims=0x7fffb7797220, nr_prims=1, ib=0x0, 
    index_bounds_valid=1 '\001', min_index=0, max_index=3, tfb_vertcount=0x0,
indirect=0x0)
    at src/mesa/state_tracker/st_draw.c:276
#24 0x00007f546bef2c8f in vbo_draw_arrays (ctx=0x7f546f95c010, mode=5, start=0,
count=4, numInstances=1, baseInstance=0)
    at src/mesa/vbo/vbo_exec_array.c:667
#25 0x00007f546bef36da in vbo_exec_DrawArrays (mode=5, start=0, count=4) at
src/mesa/vbo/vbo_exec_array.c:819
#26 0x00007f546f48109e in stub_glDrawArrays (mode=5, first=0, count=4)
    at piglit/tests/util/generated_dispatch.c:6274
#27 0x00007f546f46fd17 in piglit_draw_rect_from_arrays (verts=0x7fffb7797310,
tex=0x0)
    at piglit/tests/util/piglit-util-gl-common.c:632
#28 0x00007f546f47008f in piglit_draw_rect (x=-1, y=-1, w=2, h=2)
    at piglit/tests/util/piglit-util-gl-common.c:741
#29 0x000000000040906b in piglit_display () at
piglit/tests/shaders/shader_runner.c:1895
#30 0x00007f546f4727e2 in display () at
piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
#31 0x00007f546ec0a244 in fghRedrawWindow (window=0x1381750) at
freeglut_main.c:231
#32 fghcbDisplayWindow (window=0x1381750, enumerator=0x7fffb7797590) at
freeglut_main.c:248
#33 0x00007f546ec0daa9 in fgEnumWindows
(enumCallback=enumCallback@entry=0x7f546ec0a1d0 <fghcbDisplayWindow>, 
    enumerator=enumerator@entry=0x7fffb7797590) at freeglut_structure.c:396
#34 0x00007f546ec0a7fd in fghDisplayAll () at freeglut_main.c:271
#35 glutMainLoopEvent () at freeglut_main.c:1523
#36 0x00007f546ec0affd in glutMainLoop () at freeglut_main.c:1571
#37 0x00007f546f472ac4 in run_test (gl_fw=0x7f546f761380 <glut_fw>, argc=2,
argv=0x7fffb7797968)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:154
#38 0x00007f546f470819 in piglit_gl_test_run (argc=2, argv=0x7fffb7797968,
config=0x7fffb7797830)
    at piglit/tests/util/piglit-framework-gl.c:151
#39 0x000000000040462e in main (argc=2, argv=0x7fffb7797968) at
piglit/tests/shaders/shader_runner.c:60</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>