llvm.org GIT mirror llvm / release_31 test / Transforms / InstSimplify / 2011-01-14-Thread.ll
release_31

Tree @release_31 (Download .tar.gz)

2011-01-14-Thread.ll @release_31raw · history · blame

1
2
3
4
5
6
7
8
9
; 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
}