You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
209 B
10 lines
209 B
7 months ago
|
; 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
|
||
|
}
|