xref: /aosp_15_r20/external/llvm/test/Transforms/InstSimplify/2011-01-14-Thread.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: opt < %s -instsimplify -S | FileCheck %s
2
3define i32 @shift_select(i1 %cond) {
4; CHECK-LABEL: @shift_select(
5  %s = select i1 %cond, i32 0, i32 1
6  %r = lshr i32 %s, 1
7  ret i32 %r
8; CHECK: ret i32 0
9}
10