llvm.org GIT mirror llvm / 4cda190
For PR1319: Fix test syntax per new rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36133 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
23 changed file(s) with 48 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
0 ; This testcase consists of alias relations which should be completely
11 ; resolvable by basicaa.
22
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May:
3 ; RUN: llvm-upgrade < %s | llvm-as | \
4 ; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May:
45
56 %T = type { uint, [10 x ubyte] }
67
0 ; This testcase consists of alias relations which should be completely
11 ; resolvable by basicaa, but require analysis of getelementptr constant exprs.
22
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May:
3 ; RUN: llvm-upgrade < %s | llvm-as | \
4 ; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May:
45
56 %T = type { uint, [10 x ubyte] }
67
None ; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -disable-output 2>&1 | grep '2 no alias respon'
0 ; RUN: llvm-upgrade < %s | llvm-as | \
1 ; RUN: opt -aa-eval -disable-output |& grep '2 no alias respon'
12
23 ;; TEST that A[1][0] may alias A[0][i].
34
0 ; A very rudimentary test on AliasAnalysis::getModRefInfo.
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -print-all-alias-modref-info -aa-eval -disable-output &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -print-all-alias-modref-info -aa-eval -disable-output 2>&1 | not grep NoModRef
1 ; RUN: llvm-upgrade < %s | llvm-as | \
2 ; RUN: opt -print-all-alias-modref-info -aa-eval -disable-output |&
3 ; RUN: not grep NoModRef
34
45 int %callee() {
56 %X = alloca { int, int }
0
1 // RUN: %llvmgcc -xc++ -c -o /dev/null %s 2>&1 | not grep WARNING
1 // RUN: %llvmgcc -xc++ -c -o /dev/null %s |& not grep WARNING
22
33 struct iterator {
44 iterator();
None // RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | not grep 'warning'
0 // RUN: %llvmgcc -xc %s -S -o /dev/null |& not grep 'warning'
11
22 struct item {
33 short delta[4];
0 // This file is erroneous, but should not cause the compiler to ICE.
11 // PR481
2 // RUN: %llvmgcc %s -S -o /dev/null 2>&1 | not grep 'internal compiler error'
2 // RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
33
44 #include
55 int flags(int a, int b, ...) {
None // RUN: %llvmgcc %s -S -o /dev/null 2>&1 | not grep 'internal compiler error'
0 // RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
11
22 struct A X[(927 - 37) / sizeof(struct A)];
None // RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | grep fluffy | grep '2006-09-25-DebugFilename.c.tr'
0 // RUN: %llvmgcc -xc %s -S -o /dev/null |& \
1 // RUN: grep fluffy | grep 2006-09-25-DebugFilename.c.tr
12 #include "2006-09-25-DebugFilename.h"
23 int func1() { return hfunc1(); }
3 int func2() { fluffy; return hfunc1(); }
4 int func2() { int fluffy; return hfunc1(); }
45
None ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 -stats 2>&1 | grep 'asm-printer' | grep 41
0 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic \
1 ; RUN: -mattr=+v6 -stats |& grep asm-printer | grep 41
12
23 define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) {
34 newFuncRoot:
None ; RUN: llvm-as < %s | llc -march=arm &&
1 ; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep 'asm-printer' | grep 4
0 ; RUN: llvm-as < %s | llc -march=arm -stats |& grep asm-printer | grep 4
21
32 define i32 @t1(i32 %a) {
43 %b = mul i32 %a, 9
None ; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep '3 .*Number of machine instrs printed' &&
1 ; RUN: llvm-as < %s | llc -march=thumb -stats 2>&1 | grep '4 .*Number of machine instrs printed'
0 ; RUN: llvm-as < %s | llc -march=arm -stats |& \
1 ; RUN: grep {3 .*Number of machine instrs printed}
2 ; RUN: llvm-as < %s | llc -march=thumb -stats |& \
3 ; RUN: grep {4 .*Number of machine instrs printed}
24
35 ;; Integer absolute value, should produce something as good as: ARM:
46 ;; add r3, r0, r0, asr #31
None ; RUN: llvm-as < %s | llc -stats 2>&1 | grep '40.*Number of machine instrs printed'
1 ; This test really wants to check that the resultant "cond_true" block only has a single
2 ; store in it, and that cond_true55 only has code to materialize the constant and do
3 ; a store. We do *not* want something like this:
0 ; RUN: llvm-as < %s | llc -stats |& grep {40.*Number of machine instrs printed}
1 ; This test really wants to check that the resultant "cond_true" block only
2 ; has a single store in it, and that cond_true55 only has code to materialize
3 ; the constant and do a store. We do *not* want something like this:
44 ;
55 ;LBB1_3: @cond_true
66 ; add r8, r0, r6
None ; RUN: llvm-as < %s | llc -march=ppc32 -stats 2>&1 | grep '4 .*Number of machine instrs printed'
0 ; RUN: llvm-as < %s | llc -march=ppc32 -stats |& \
1 ; RUN: grep {4 .*Number of machine instrs printed}
12
23 ;; Integer absolute value, should produce something as good as:
34 ;; srawi r2, r3, 31
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats 2>&1 | grep 'Number of machine instrs printed' | grep 12
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats |& \
1 ; RUN: grep {Number of machine instrs printed} | grep 12
12
23 ushort %Trans16Bit(uint %srcA, uint %srcB, uint %alpha) {
34 %tmp1 = shl uint %srcA, ubyte 15 ; [#uses=1]
22 ; it makes a ton of annoying overlapping live ranges. This code should not
33 ; cause spills!
44 ;
5 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | not grep spilled
5 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& not grep spilled
66
77 target endian = little
88 target pointersize = 32
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
1 ; RUN: grep asm-printer | grep 7
12
23 int %g(int %a, int %b) {
34 %tmp.1 = shl int %b, ubyte 1
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats 2>&1 | not grep 'Number of register spills'
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats |& \
1 ; RUN: not grep {Number of register spills}
12
23 int %foo(<4 x float>* %a, <4 x float>* %b, <4 x float>* %c, <4 x float>* %d) {
34 %tmp44 = load <4 x float>* %a ; <<4 x float>> [#uses=9]
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static -stats 2>&1 | grep "asm-printer" | grep 14
0 ; RUN: llvm-upgrade < %s | llvm-as | \
1 ; RUN: llc -march=x86 -relocation-model=static -stats |& \
2 ; RUN: grep asm-printer | grep 14
3 ;
14 %size20 = external global uint ; [#uses=1]
25 %in5 = external global ubyte* ; [#uses=1]
36
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep "asm-printer" | grep 18
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
1 ; RUN: grep asm-printer | grep 18
12
23 void %_ZN9__gnu_cxx9hashtableISt4pairIKPKciES3_NS_4hashIS3_EESt10_Select1stIS5_E5eqstrSaIiEE14find_or_insertERKS5__cond_true456.i(sbyte* %tmp435.i, uint* %tmp449.i.out) {
34 newFuncRoot:
None ; RUN: llvm-as < %s | llc -march=x86-64 -stats 2>&1 | grep '6 .*Number of machine instrs printed'
0 ; RUN: llvm-as < %s | llc -march=x86-64 -stats |& \
1 ; RUN: grep {6 .*Number of machine instrs printed}
12
23 ;; Integer absolute value, should produce something at least as good as:
34 ;; movl %edi, %eax
None ; RUN: llvm-upgrade < %s | llvm-as | opt -licm -stats 2>&1 | grep "memory locations promoted to register"
0 ; RUN: llvm-upgrade < %s | llvm-as | opt -licm -stats |& \
1 ; RUN: grep {memory locations promoted to register}
12
23 %X = global int 7
34
0 ; This function contains two tail calls, which should be eliminated
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim -stats -disable-output 2>&1 | grep '2 tailcallelim'
1 ; RUN: llvm-upgrade < %s | llvm-as | \
2 ; RUN: opt -tailcallelim -stats -disable-output |& grep {2 tailcallelim}
23
34 int %Ack(int %M.1, int %N.1) {
45 entry: