Shift sizes larger than the size of the value in bits can happen if
constant folding fails.
Testcase based on rdar://19211454
Differential D6940
AArch64: Relax assert about large shift sizes. MatzeB on Jan 12 2015, 3:28 PM. Authored by
Details Shift sizes larger than the size of the value in bits can happen if Testcase based on rdar://19211454
Diff Detail
Event TimelineComment Actions Hi Matthias, I am wondering if we shouldn’t generate an undef node in Selection DAG for such shifts, unless the semantic is properly defined there. What do you think? Comment Actions So.. I'm curious, what happens now? (i.e.: how about a little more explicit testcase?) Also, you mention it in the comment: I would have expected this to be folded to undef, why didn't it? -Ahmed Comment Actions The radar mentions "llvm-stress --seed=29856" as the source of that program, maybe that just doesn't perform any combining/constant folding. In each case I don't know if we should always rely on constant folding/combining happening, what is with clang -O0 for example? Greeting |