mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 10:17:37 +00:00
For PR1319:
Make use of the END. facility on all files > 1K so that we aren't wasting CPU cycles searching for RUN: lines that we'll never find. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36059 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a20c22f190
commit
7c65d4345e
@ -1,10 +1,11 @@
|
||||
; This testcase, obviously distilled from a large program (bzip2 from Specint2000)
|
||||
; caused instcombine to fail because it got the same instruction on it's worklist
|
||||
; more than once (which is ok), but then deleted the instruction. Since the inst
|
||||
; stayed on the worklist, as soon as it came back up to be processed, bad things
|
||||
; happened, and opt asserted.
|
||||
; This testcase, obviously distilled from a large program (bzip2 from
|
||||
; Specint2000) caused instcombine to fail because it got the same instruction
|
||||
; on it's worklist more than once (which is ok), but then deleted the
|
||||
; instruction. Since the inst stayed on the worklist, as soon as it came back
|
||||
; up to be processed, bad things happened, and opt asserted.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
|
||||
; END.
|
||||
;
|
||||
|
||||
%.LC0 = internal global [21 x sbyte] c"hbMakeCodeLengths(1)\00" ; <[21 x sbyte]*> [#uses=1]
|
||||
|
@ -11,6 +11,7 @@
|
||||
;
|
||||
; Extra code:
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
|
||||
; END.
|
||||
;
|
||||
|
||||
target endian = little
|
||||
|
@ -11,6 +11,7 @@
|
||||
;
|
||||
; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: notcast .*int
|
||||
; END.
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; END.
|
||||
|
||||
%struct.DecRefPicMarking_s = type { int, int, int, int, int, %struct.DecRefPicMarking_s* }
|
||||
%struct.datapartition = type { %typedef.Bitstream*, %typedef.DecodingEnvironment, int (%struct.syntaxelement*, %struct.img_par*, %struct.inp_par*, %struct.datapartition*)* }
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; END.
|
||||
|
||||
void %test() {
|
||||
bb38.i:
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; END.
|
||||
|
||||
%struct.gs_matrix = type { float, int, float, int, float, int, float, int, float, int, float, int }
|
||||
%struct.gx_bitmap = type { ubyte*, int, int, int }
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; PR905
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; END.
|
||||
|
||||
%RPYTHON_EXCEPTION = type { %RPYTHON_EXCEPTION_VTABLE* }
|
||||
%RPYTHON_EXCEPTION_VTABLE = type { %RPYTHON_EXCEPTION_VTABLE*, int, int, %RPyOpaque_RuntimeTypeInfo*, %arraytype_Char*, %functiontype_12* }
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep select
|
||||
; END.
|
||||
|
||||
target datalayout = "e-p:32:32"
|
||||
target endian = little
|
||||
target pointersize = 32
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v {icmp ult int}
|
||||
; END.
|
||||
|
||||
; ModuleID = 'good.bc'
|
||||
target datalayout = "e-p:32:32"
|
||||
target endian = little
|
||||
|
@ -2,6 +2,7 @@
|
||||
; operands is encountered.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
|
||||
; END.
|
||||
|
||||
; ModuleID = 'PR1065.bc'
|
||||
target datalayout = "e-p:32:32"
|
||||
target endian = little
|
||||
|
@ -2,6 +2,7 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep {ashr i32 %.mp137, 2}
|
||||
; END.
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
|
||||
target triple = "i686-pc-linux-gnu"
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep select | not grep {i32\\*}
|
||||
; END.
|
||||
|
||||
; This testcase corresponds to PR362, which notices that this horrible code
|
||||
; is generated by the C++ front-end and LLVM optimizers, which has lots of
|
||||
|
@ -3,6 +3,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v OK | not grep add
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: not grep {or }
|
||||
; END.
|
||||
|
||||
int %test1(int %X, int %Y) {
|
||||
%A = and int %X, 7
|
||||
|
@ -2,6 +2,7 @@
|
||||
;
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep and
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v OK | not grep add
|
||||
|
||||
; END.
|
||||
|
||||
define i111 @test1(i111 %x) {
|
||||
%tmp.2 = shl i111 1, 110
|
||||
|
@ -12,6 +12,7 @@
|
||||
; This tests arbitrary precision integers.
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {or }
|
||||
; END.
|
||||
|
||||
define i17 @test1(i17 %X, i17 %Y) {
|
||||
%A = and i17 %X, 7
|
||||
|
@ -2,6 +2,7 @@
|
||||
; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0.
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {and }
|
||||
; END.
|
||||
|
||||
define i39 @test0(i39 %A) {
|
||||
%B = and i39 %A, 0 ; zero result
|
||||
|
@ -2,6 +2,7 @@
|
||||
; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {and }
|
||||
; END.
|
||||
|
||||
|
||||
define i999 @test0(i999 %A) {
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v {sub i19 %Cok, %Bok} | not grep sub
|
||||
; END.
|
||||
|
||||
define i23 @test1(i23 %A) {
|
||||
%B = sub i23 %A, %A ; <i23> [#uses=1]
|
||||
|
@ -2,6 +2,7 @@
|
||||
; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
||||
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep {xor }
|
||||
; END.
|
||||
|
||||
|
||||
define i447 @test1(i447 %A, i447 %B) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep {call.*llvm.bswap} | wc -l | grep 5
|
||||
; END.
|
||||
|
||||
uint %test1(uint %i) {
|
||||
%tmp1 = shr uint %i, ubyte 24 ; <uint> [#uses=1]
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep call | notcast
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; Tests to make sure elimination of casts is working correctly
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep %c | notcast
|
||||
; END.
|
||||
|
||||
%inbuf = external global [32832 x ubyte]
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
;
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep div
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: not grep getelementptr
|
||||
; END.
|
||||
|
||||
bool %test1(short* %P, int %I, int %J) {
|
||||
%X = getelementptr short* %P, int %I
|
||||
|
@ -3,6 +3,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v %B | not grep getelementptr
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep foo1
|
||||
; END.
|
||||
|
||||
%Global = constant [10 x sbyte] c"helloworld"
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; This test makes sure that mul instructions are properly eliminated.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep mul
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: grep -v xor | not grep {or }
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep phi
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
; This test makes sure that these instructions are properly eliminated.
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep rem
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: not grep select
|
||||
; END.
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: not grep {(and\|xor\|add\|shl\|shr)}
|
||||
; END.
|
||||
|
||||
int %test1(int %x) {
|
||||
%tmp.1 = and int %x, 65535 ; <int> [#uses=1]
|
||||
|
@ -4,6 +4,7 @@
|
||||
; RUN: not grep insertelement
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
|
||||
; RUN: not grep extractelement
|
||||
; END.
|
||||
|
||||
<4 x float> %test(<4 x float> %tmp, <4 x float> %tmp1) {
|
||||
%tmp4 = extractelement <4 x float> %tmp, uint 1 ; <float> [#uses=1]
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep vector_shuffle
|
||||
; END.
|
||||
|
||||
%T = type <4 x float>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user