<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 - test-suite/.../cjpeg & consumer-jpeg fail compilation after r310208"
   href="https://bugs.llvm.org/show_bug.cgi?id=34175">34175</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>test-suite/.../cjpeg & consumer-jpeg fail compilation after r310208
          </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>Windows NT
          </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>elad2.cohen@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The tests:
test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg
test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg

fail compilation in the buildbots:
<a href="http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/162">http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/162</a>
after r310782. (There are 3 commits in the change-list but this seems the only
one that could be related)

The failure seems to happen when compiling with "-O3 -march=broadwell". (I
tried locally and got failures also with AVX and AVX512).

test-suite reproducer and logs:
$ lnt runtest test-suite --sandbox SANDBOX --cc clang --test-suite test-suite
--only-test MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg
--use-lit lit.py --use-cmake cmake --cflags="-O3 -march=broadwell"
...
#0 0x00002b05e30ac994 PrintStackTraceSignalHandler(void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6994)
#1 0x00002b05e30acce6 SignalHandler(int)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6ce6)
#2 0x00002b05e397b100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#3 0x00002b05e57ea5f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#4 0x00002b05e57ebce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#5 0x00002b05e57e3566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#6 0x00002b05e57e3612 (/lib64/libc.so.6+0x2e612)
#7 0x00002b05e612f5db (anonymous
namespace)::DAGCombiner::visitBUILD_VECTOR(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x7b5db)
#8 0x00002b05e60ecc19 (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x38c19)
#9 0x00002b05e60e85ac (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x345ac)
#10 0x00002b05e60e72a8 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x332a8)
#11 0x00002b05e62b5f3c llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x201f3c)
#12 0x00002b05e62b446f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x20046f)
#13 0x00002b05e62b0a06
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x1fca06)
#14 0x00002b05defbb521 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMX86CodeGen.so.6+0xb6521)
#15 0x00002b05e0d77244
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCodeGen.so.6+0x1cf244)
#16 0x00002b05e145531f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x19231f)
#17 0x00002b05e1455573 llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192573)
#18 0x00002b05e1455a75 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192a75)
#19 0x00002b05e40c78a2 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> >)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x7b8a2)
#20 0x00002b05e42c96a3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x27d6a3)
#21 0x00002b05e9bb7096 clang::ParseAST(clang::Sema&, bool, bool)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libclangParse.so.6+0x2c096)
#22 0x00002b05e4b03368 clang::FrontendAction::Execute()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0xc0368)
#23 0x00002b05e4abef41
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0x7bf41)
#24 0x00002b05e4d9165d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontendTool.so.6+0x365d)
#25 0x000000000040f017 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40f017)
#26 0x000000000040cd6d main
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40cd6d)
#27 0x00002b05e57d6b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x000000000040a05d _start
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40a05d)
Stack dump:
0.      Program arguments:
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
jcdctmgr.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu broadwell -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg/CMakeFiles/consumer-jpeg.dir/jcdctmgr.c.gcno
-resource-dir
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0 -D
NDEBUG -I
/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg -I
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg
-internal-isystem /usr/local/include -internal-isystem
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Werror=date-time -w -fdebug-compilation-dir
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-47-18/MultiSource/Benchmarks/MiBench/consumer-jpeg
-ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/consumer-jpeg.dir/jcdctmgr.c.o -x c
/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/jcdctmgr.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/users/cohenela/test-suite/MultiSource/Benchmarks/MiBench/consumer-jpeg/jcdctmgr.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@start_pass_fdctmgr'
...
NOEXE: test-suite ::
MultiSource/Benchmarks/MiBench/consumer-jpeg/consumer-jpeg.test (1 of 1)

$ lnt runtest test-suite --sandbox SANDBOX --cc clang --test-suite test-suite
--only-test MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg --use-lit
lit.py --use-cmake cmake --cflags="-O3 -march=broadwell"
...
#0 0x00002acb20a07994 PrintStackTraceSignalHandler(void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6994)
#1 0x00002acb20a07ce6 SignalHandler(int)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMSupport.so.6+0xf6ce6)
#2 0x00002acb212d6100 __restore_rt (/lib64/libpthread.so.0+0xf100)
#3 0x00002acb231455f7 __GI_raise (/lib64/libc.so.6+0x355f7)
#4 0x00002acb23146ce8 __GI_abort (/lib64/libc.so.6+0x36ce8)
#5 0x00002acb2313e566 __assert_fail_base (/lib64/libc.so.6+0x2e566)
#6 0x00002acb2313e612 (/lib64/libc.so.6+0x2e612)
#7 0x00002acb23a8a5db (anonymous
namespace)::DAGCombiner::visitBUILD_VECTOR(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x7b5db)
#8 0x00002acb23a47c19 (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x38c19)
#9 0x00002acb23a435ac (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x345ac)
#10 0x00002acb23a422a8 llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AAResults*, llvm::CodeGenOpt::Level)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x332a8)
#11 0x00002acb23c10f3c llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x201f3c)
#12 0x00002acb23c0f46f
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x20046f)
#13 0x00002acb23c0ba06
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libLLVMSelectionDAG.so.6+0x1fca06)
#14 0x00002acb1c916521 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMX86CodeGen.so.6+0xb6521)
#15 0x00002acb1e6d2244
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCodeGen.so.6+0x1cf244)
#16 0x00002acb1edb031f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x19231f)
#17 0x00002acb1edb0573 llvm::FPPassManager::runOnModule(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192573)
#18 0x00002acb1edb0a75 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libLLVMCore.so.6+0x192a75)
#19 0x00002acb21a228a2 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> >)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x7b8a2)
#20 0x00002acb21c246a3
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangCodeGen.so.6+0x27d6a3)
#21 0x00002acb27512096 clang::ParseAST(clang::Sema&, bool, bool)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/../lib/libclangParse.so.6+0x2c096)
#22 0x00002acb2245e368 clang::FrontendAction::Execute()
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0xc0368)
#23 0x00002acb22419f41
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontend.so.6+0x7bf41)
#24 0x00002acb226ec65d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/../lib/libclangFrontendTool.so.6+0x365d)
#25 0x000000000040f017 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40f017)
#26 0x000000000040cd6d main
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40cd6d)
#27 0x00002acb23131b15 __libc_start_main (/lib64/libc.so.6+0x21b15)
#28 0x000000000040a05d _start
(/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0+0x40a05d)
Stack dump:
0.      Program arguments:
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/bin/clang-6.0 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
jcdctmgr.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu broadwell -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/CMakeFiles/cjpeg.dir/jcdctmgr.c.gcno
-resource-dir
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0 -D
NDEBUG -I
/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a -I
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a
-internal-isystem /usr/local/include -internal-isystem
/export/iusers/cohenela/git_workspaces/playground/llvm/RA/lib/clang/6.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Werror=date-time -w -fdebug-compilation-dir
/export/iusers/cohenela/SANDBOX/test-2017-08-13_10-51-13/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a
-ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o CMakeFiles/cjpeg.dir/jcdctmgr.c.o -x c
/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/jcdctmgr.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/users/cohenela/test-suite/MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/jcdctmgr.c'.
4.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@start_pass_fdctmgr'
...
NOEXE: test-suite :: MultiSource/Benchmarks/mediabench/jpeg/jpeg-6a/cjpeg.test
(1 of 1)</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>