Tag this test with the PR reference.
[oota-llvm.git] / test / Transforms / InstCombine / 2004-11-27-SetCCForCastLargerAndConstant.ll
index b04d544636e685e8016bb866dbe4dbef2f42ff8f..7e12bbf5aee7e098dc3b7016a6104bac464a98af 100644 (file)
@@ -9,11 +9,12 @@
 ; be eliminated. In many cases the setCC is also eliminated based on the
 ; constant value and the range of the casted value.
 ;
-; RUN: llvm-as %s -o - | opt -instcombine -o - | llvm-dis -o - | grep -v cast
+; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
+; RUN:    notcast .*int
+; END.
 
 implementation   ; Functions:
 
-; 
 bool %lt_signed_to_large_unsigned(sbyte %SB) {
   %Y = cast sbyte %SB to uint          ; <uint> [#uses=1]
   %C = setlt uint %Y, 1024             ; <bool> [#uses=1]
@@ -32,12 +33,6 @@ bool %lt_signed_to_large_negative(sbyte %SB) {
   ret bool %C
 }
 
-bool %lt_signed_to_small_unsigned(sbyte %SB) {
-  %Y = cast sbyte %SB to uint          ; <uint> [#uses=1]
-  %C = setlt uint %Y, 17               ; <bool> [#uses=1]
-  ret bool %C
-}
-
 bool %lt_signed_to_small_signed(sbyte %SB) {
   %Y = cast sbyte %SB to int
   %C = setlt int %Y, 17
@@ -74,12 +69,6 @@ bool %lt_unsigned_to_small_unsigned(ubyte %SB) {
   ret bool %C
 }
 
-bool %lt_unsigned_to_small_signed(ubyte %SB) {
-  %Y = cast ubyte %SB to int
-  %C = setlt int %Y, 17
-  ret bool %C
-}
-
 bool %lt_unsigned_to_small_negative(ubyte %SB) {
   %Y = cast ubyte %SB to int
   %C = setlt int %Y, -17
@@ -104,12 +93,6 @@ bool %gt_signed_to_large_negative(sbyte %SB) {
   ret bool %C
 }
 
-bool %gt_signed_to_small_unsigned(sbyte %SB) {
-  %Y = cast sbyte %SB to uint          ; <uint> [#uses=1]
-  %C = setgt uint %Y, 17               ; <bool> [#uses=1]
-  ret bool %C
-}
-
 bool %gt_signed_to_small_signed(sbyte %SB) {
   %Y = cast sbyte %SB to int
   %C = setgt int %Y, 17
@@ -146,12 +129,6 @@ bool %gt_unsigned_to_small_unsigned(ubyte %SB) {
   ret bool %C
 }
 
-bool %gt_unsigned_to_small_signed(ubyte %SB) {
-  %Y = cast ubyte %SB to int
-  %C = setgt int %Y, 17
-  ret bool %C
-}
-
 bool %gt_unsigned_to_small_negative(ubyte %SB) {
   %Y = cast ubyte %SB to int
   %C = setgt int %Y, -17