mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 01:34:32 +00:00
10 lines
202 B
LLVM
10 lines
202 B
LLVM
|
; 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
|
||
|
}
|