bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstSimplify/2011-01-14-Thread.ll
2025-02-14 19:21:04 +01:00

11 lines
300 B
LLVM

; 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
}