64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
10 lines
209 B
LLVM
10 lines
209 B
LLVM
; RUN: opt < %s -instsimplify -S | FileCheck %s
|
|
|
|
define i32 @shift_select(i1 %cond) {
|
|
; CHECK-LABEL: @shift_select(
|
|
%s = select i1 %cond, i32 0, i32 1
|
|
%r = lshr i32 %s, 1
|
|
ret i32 %r
|
|
; CHECK: ret i32 0
|
|
}
|