Add a test for the foldSelectICmpAndOr fix committed in r180779.
[oota-llvm.git] / test / Transforms / InstCombine / 2012-08-28-udiv_ashl.ll
index a35a816219a0517e9ebeb4b783d1d8432a472af9..4efaf8c172556478f7169f2b28a11214adbe6d16 100644 (file)
@@ -15,15 +15,6 @@ entry:
   ret i32 %div1
 }
 
-; CHECK: @sdiv400
-; CHECK: sdiv i32 %x, 400
-; CHECK: ret
-define i32 @sdiv400(i32 %x) {
-entry:
-  %div = ashr i32 %x, 2
-  %div1 = sdiv i32 %div, 100
-  ret i32 %div1
-}
 
 ; CHECK: @udiv400_no
 ; CHECK: ashr
@@ -59,22 +50,6 @@ define i80 @udiv_i80(i80 %x) {
   ret i80 %div1
 }
 
-; CHECK: @sdiv_i80
-; CHECK: sdiv i80 %x, 400
-; CHECK: ret
-define i80 @sdiv_i80(i80 %x) {
-  %div = ashr i80 %x, 2
-  %div1 = sdiv i80 %div, 100
-  ret i80 %div1
-}
-
-
-define i32 @no_crash_notconst_sdiv(i32 %x, i32 %notconst) {
-  %div = ashr i32 %x, %notconst
-  %div1 = sdiv i32 %div, 100
-  ret i32 %div1
-}
-
 define i32 @no_crash_notconst_udiv(i32 %x, i32 %notconst) {
   %div = lshr i32 %x, %notconst
   %div1 = udiv i32 %div, 100