1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=instcombine -S < %s | FileCheck %s
4 define i8 @simplify_lshr_with_exact(i8 %x) {
5 ; CHECK-LABEL: @simplify_lshr_with_exact(
8 %shr = lshr exact i8 6, %x
13 define i8 @simplify_ashr_with_exact(i8 %x) {
14 ; CHECK-LABEL: @simplify_ashr_with_exact(
15 ; CHECK-NEXT: ret i8 2
17 %shr = ashr exact i8 -122, %x