1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

These tests should not run -dce pass to cleanup instcombine.

If instcombine is making dead instructions, ALL that should be used is -die

llvm-svn: 3221
This commit is contained in:
Chris Lattner 2002-08-02 19:27:58 +00:00
parent 8256db1eb0
commit cdb6a7e022
14 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,7 @@
; 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]

View File

@ -3,7 +3,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,4 +1,4 @@
; 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

View File

@ -1,6 +1,6 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,6 +1,6 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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

View File

@ -1,7 +1,7 @@
; 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