aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/InstSimplify/2011-01-14-Thread.ll
blob: 124f77a01878d6977f5c9a518156326c01fc0f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=instsimplify -S | FileCheck %s

define i32 @shift_select(i1 %cond) {
; CHECK-LABEL: @shift_select(
; CHECK-NEXT:    ret i32 0
;
  %s = select i1 %cond, i32 0, i32 1
  %r = lshr i32 %s, 1
  ret i32 %r
}