mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Convert scripts from using explicit control flow to use the new grep-not script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35f7ba9120
commit
c6cab24151
@ -1,10 +1,7 @@
|
||||
; Instcombine was missing a test that caused it to make illegal transformations
|
||||
; sometimes. In this case, it transforms the sub into an add:
|
||||
; RUN: echo foo
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep add
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not add
|
||||
;
|
||||
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep add
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not add
|
||||
|
||||
int %test(int %A) {
|
||||
%A.neg = sub int 0, %A
|
||||
|
@ -3,10 +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 -die | dis | grep add
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep-not add
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep and
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not and
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
; RUN: if as < %s | opt -instcombine -die | dis | grep call | grep cast
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep call | grep-not cast
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -3,10 +3,7 @@
|
||||
; slow. Might it be better to make there be an instcombine prepass before
|
||||
; level raise that takes care of the obvious stuff?
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep cast
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not cast
|
||||
|
||||
bool %test1(int %X) {
|
||||
%A = cast int %X to uint
|
||||
|
@ -1,9 +1,6 @@
|
||||
; Tests to make sure elimination of casts is working correctly
|
||||
|
||||
; RUN: if as < %s | opt -instcombine -die | dis | grep '%c' | grep cast
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep '%c' | grep-not cast
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that div instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep div
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not div
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,9 +1,6 @@
|
||||
; The %A getelementptr instruction should be eliminated here
|
||||
|
||||
; RUN: if as < %s | opt -instcombine -die | dis | grep getelementptr | grep '%A '
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep getelementptr | grep-not '%A '
|
||||
|
||||
%Global = constant [10 x sbyte] c"helloworld"
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep load
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not load
|
||||
|
||||
%X = constant int 42
|
||||
%Y = constant [2 x { int, float }] [ { int, float } { int 12, float 1.0 },
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine -die | dis | grep xor
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep-not xor
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep -v '%OROK = or' | grep or\
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep -v '%OROK = or' | grep-not 'or '
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine -die | dis | grep phi
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep-not phi
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -2,10 +2,7 @@
|
||||
;
|
||||
; Equivalent to: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01786.html
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep 'call double %pow'
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not 'call double %pow'
|
||||
|
||||
declare double %pow(double, double)
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep rem
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not rem
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep set
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not set
|
||||
|
||||
%X = uninitialized global int
|
||||
|
||||
|
@ -3,10 +3,7 @@
|
||||
; into equivalent setne,eq instructions.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | grep set
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | grep-not set
|
||||
|
||||
bool "test1"(uint %A) {
|
||||
%B = setge uint %A, 1 ; setne %A, 0
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; RUN: if as < %s | opt -instcombine | dis | grep sh
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
; RUN: as < %s | opt -instcombine | dis | grep-not sh
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
|
||||
; 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
|
||||
; RUN: as < %s | opt -instcombine -die | dis | grep sub | grep-not -v 'sub int %Cok, %Bok'
|
||||
|
||||
implementation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user