YouCompleteMe/cpp/llvm/test/Transforms/InstSimplify/2011-01-14-Thread.ll

10 lines
202 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; RUN: opt < %s -instsimplify -S | FileCheck %s
define i32 @shift_select(i1 %cond) {
; CHECK: @shift_select
%s = select i1 %cond, i32 0, i32 1
%r = lshr i32 %s, 1
ret i32 %r
; CHECK: ret i32 0
}