mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
These tests should not run -dce pass to cleanup instcombine.
If instcombine is making dead instructions, ALL that should be used is -die git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7f9637a9d
commit
4a6e4b30b4
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user