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

Tree @release_40 (Download .tar.gz)

2011-01-14-Thread.ll @release_40raw · 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-LABEL: @shift_select(
  %s = select i1 %cond, i32 0, i32 1
  %r = lshr i32 %s, 1
  ret i32 %r
; CHECK: ret i32 0
}