[DAGCombiner] extractShiftForRotate - fix out of range shift issue
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Aug 2018 12:25:18 +0000 (12:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 17 Aug 2018 12:25:18 +0000 (12:25 +0000)
commit03e57521c0fc720b6bf7ab858f232e4d02942be4
treebfc9993b2869c16138f4190bfc810d3a8bda053a
parentf874607f328a380280f91e8806e696f12033dd3c
[DAGCombiner] extractShiftForRotate - fix out of range shift issue

Don't just check for negative shift amounts.

Fixes OSS Fuzz #9935
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9935

llvm-svn: 340015
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/combine-rotates.ll