mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
10 lines
209 B
LLVM
10 lines
209 B
LLVM
; 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
|
|
}
|