; This testcase is incorrectly getting completely eliminated. There should be
; SOME instruction named %c here, even if it's a bitwise and.
;
-; RUN: as < %s | opt -instcombine -dce | grep '%c'
+; RUN: as < %s | opt -instcombine | grep '%c'
ulong %test3(ulong %A) {
%c1 = cast ulong %A to ubyte ; <ubyte> [#uses=0]
%c2 = cast ulong %A to ulong ; <ulong> [#uses=0]
; This also tests that a subtract with a constant is properly converted
; to a add w/negative constant
-; RUN: if as < %s | opt -instcombine -dce | dis | grep add
+; RUN: if as < %s | opt -instcombine -die | dis | grep add
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep and
+; RUN: if as < %s | opt -instcombine | dis | grep and
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
-; RUN: if as < %s | opt -instcombine -dce | dis | grep cast
+; RUN: if as < %s | opt -instcombine | dis | grep cast
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; Tests to make sure elimination of casts is working correctly
-; RUN: if as < %s | opt -instcombine -dce | grep '%c' | grep cast
+; RUN: if as < %s | opt -instcombine | grep '%c' | grep cast
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that div instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep div
+; RUN: if as < %s | opt -instcombine | dis | grep div
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; The %A getelementptr instruction should be eliminated here
-; RUN: if as < %s | opt -instcombine -dce | dis | grep getelementptr | grep '%A'
+; RUN: if as < %s | opt -instcombine -die | dis | grep getelementptr | grep '%A'
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that mul instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep mul
+; RUN: if as < %s | opt -instcombine | dis | grep mul
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep not
+; RUN: if as < %s | opt -instcombine -die | dis | grep not
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep or
+; RUN: if as < %s | opt -instcombine | dis | grep or
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep rem
+; RUN: if as < %s | opt -instcombine | dis | grep rem
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep set
+; RUN: if as < %s | opt -instcombine | dis | grep set
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep sh
+; RUN: if as < %s | opt -instcombine | dis | grep sh
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
; This test makes sure that these instructions are properly eliminated.
;
-; RUN: if as < %s | opt -instcombine -dce | dis | grep sub | grep -v 'sub int %Cok, %Bok'
+; RUN: if as < %s | opt -instcombine -die | dis | grep sub | grep -v 'sub int %Cok, %Bok'
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi