[llvm-bugs] [Bug 31436] New: test-suite/MultiSource/Benchmarks/MiBench/consumer-lame miscompiles for AVX-512 target starting from r289073

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 20 10:08:00 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31436

            Bug ID: 31436
           Summary: test-suite/MultiSource/Benchmarks/MiBench/consumer-lam
                    e miscompiles for AVX-512 target starting from r289073
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Transformation Utilities
          Assignee: unassignedbugs at nondot.org
          Reporter: zvi.rackover at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17774
  --> https://llvm.org/bugs/attachment.cgi?id=17774&action=edit
Reproducer source

The attached reproducer was generated while running the LLVM test-suite for 
the skylake-avx512 target.
I ran a 'git bisect' and pinned down commit 289073.

TO reproduce on my machine:
 "/export/iusers/zrackove/llvm/build/bin/clang-4.0" "-cc1" "-triple"
"x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-main-file-name"
"layer3.c" "-mrelocation-model" "static" "-mthread-model" "posix"
"-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables"
"-fuse-init-array" "-target-cpu" "skylake-avx512" "-momit-leaf-frame-pointer"
"-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file"
"/export/iusers/zrackove/SANDBOX/test-2016-12-20_16-55-53/MultiSource/Benchmarks/MiBench/consumer-lame/Output/layer3.llvm.gcno"
"-D" "HAVEMPGLIB" "-D" "LAMEPARSE" "-D" "NDEBUG" "-D" "__NO_MATH_INLINES" "-D"
"LAMESNDFILE" "-D" "_GNU_SOURCE" "-D" "__STDC_LIMIT_MACROS" "-D" "NDEBUG" "-O3"
"-ferror-limit" "19" "-fmessage-length" "0" "-fobjc-runtime=gcc"
"-fdiagnostics-show-option" "-vectorize-loops" "-vectorize-slp" "-x" "c"
"layer3-f2dc93.c"

Output:
#0 0x0000000002c26bec llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/export/iusers/zrackove/llvm/build/../lib/Support/Unix/Signals.inc:402:11
#1 0x0000000002c270d9 PrintStackTraceSignalHandler(void*)
/export/iusers/zrackove/llvm/build/../lib/Support/Unix/Signals.inc:466:1        
#2 0x0000000002c25463 llvm::sys::RunSignalHandlers()
/export/iusers/zrackove/llvm/build/../lib/Support/Signals.cpp:45:5              
#3 0x0000000002c27434 SignalHandler(int)
/export/iusers/zrackove/llvm/build/../lib/Support/Unix/Signals.inc:256:1        
#4 0x00007f4b3f011100 __restore_rt (/lib64/libpthread.so.0+0xf100)              
#5 0x000000000263d454 llvm::GEPOperator::getSourceElementType() const
/export/iusers/zrackove/llvm/build/../lib/IR/Operator.cpp:10:17         
#6 0x0000000001edcd47 (anonymous
namespace)::SymbolicallyEvaluateGEP(llvm::GEPOperator const*,
llvm::ArrayRef<llvm::Constant*>, llvm::DataLayout const&,
llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:792:9    
#7 0x0000000001ecdd91 (anonymous
namespace)::ConstantFoldInstOperandsImpl(llvm::Value const*, unsigned int,
llvm::ArrayRef<llvm::Constant*>, llvm::DataLayout const&,
llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:1002:19  
#8 0x0000000001ecd5b2 (anonymous
namespace)::ConstantFoldConstantImpl(llvm::Constant const*, llvm::DataLayout
const&, llvm::TargetLibraryInfo const*, llvm::SmallDenseMap<llvm::Constant*,
llvm::Constant*, 4u, llvm::DenseMapInfo<llvm::Constant*>,
llvm::detail::DenseMapPair<llvm::Constant*, llvm::Constant*> >&)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:1075:5   
#9 0x0000000001ecdc59 llvm::ConstantFoldConstant(llvm::Constant const*,
llvm::DataLayout const&, llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:1158:10  
#10 0x0000000001ede181 (anonymous namespace)::CastGEPIndices(llvm::Type*,
llvm::ArrayRef<llvm::Constant*>, llvm::Type*, llvm::Optional<unsigned int>,
llvm::DataLayout const&, llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:761:17   

...

#253 0x0000000001ecd5b2 (anonymous
namespace)::ConstantFoldConstantImpl(llvm::Constant const*, llvm::DataLayout
const&, llvm::TargetLibraryInfo const*, llvm::SmallDenseMap<llvm::Constant*,
llvm::Constant*, 4u, llvm::DenseMapInfo<llvm::Constant*>,
llvm::detail::DenseMapPair<llvm::Constant*, llvm::Constant*> >&)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:1075:5   
#254 0x0000000001ecdc59 llvm::ConstantFoldConstant(llvm::Constant const*,
llvm::DataLayout const&, llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:1158:10  
#255 0x0000000001ede181 (anonymous namespace)::CastGEPIndices(llvm::Type*,
llvm::ArrayRef<llvm::Constant*>, llvm::Type*, llvm::Optional<unsigned int>,
llvm::DataLayout const&, llvm::TargetLibraryInfo const*)
/export/iusers/zrackove/llvm/build/../lib/Analysis/ConstantFolding.cpp:761:17   
Stack dump:                                                                     
0.      Program arguments: /export/iusers/zrackove/llvm/build/bin/clang-4.0
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
layer3.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu skylake-avx512 -momit-leaf-frame-pointer -dwarf-column-info
-debugger-tuning=gdb -coverage-notes-file
/export/iusers/zrackove/SANDBOX/test-2016-12-20_16-55-53/MultiSource/Benchmarks/MiBench/consumer-lame/Output/layer3.llvm.gcno
-D HAVEMPGLIB -D LAMEPARSE -D NDEBUG -D __NO_MATH_INLINES -D LAMESNDFILE -D
_GNU_SOURCE -D __STDC_LIMIT_MACROS -D NDEBUG -O3 -ferror-limit 19
-fmessage-length 0 -fobjc-runtime=gcc -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -x c layer3-f2dc93.c                            
1.      <eof> parser at end of file                                             
2.      Per-module optimization passes                                          
3.      Running pass 'Function Pass Manager' on module 'layer3-f2dc93.c'.       
4.      Running pass 'Combine redundant instructions' on function
'@init_layer3'                                                                  
./repro.sh: line 10: 40991 Segmentation fault

-- 
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/20161220/85c8dcb6/attachment.html>


More information about the llvm-bugs mailing list