git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316322
91177308-0d34-0410-b5e6-
96231b3b80d8
}
; Check that we look through cast and recognize min idiom.
+
define zeroext i8 @look_through_cast1(i32 %x) {
; CHECK-LABEL: @look_through_cast1(
; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 [[X:%.*]], 511
}
; Check that we look through cast but min is not recognized.
+
define zeroext i8 @look_through_cast2(i32 %x) {
; CHECK-LABEL: @look_through_cast2(
; CHECK-NEXT: [[CMP1:%.*]] = icmp slt i32 [[X:%.*]], 510