llvm.org GIT mirror llvm / 4575ab2
For PR1336: XFAIL tests covered by the PR. These will be un-XFAILed as they are fixed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36093 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
31 changed file(s) with 38 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
44 ;RUN: llvm-ranlib %t.GNU.a
55 ;RUN: llvm-ar t %t.GNU.a > %t1
66 ;RUN: diff %t1 %p/GNU.toc
7 ;XFAIL: *
78
44 ;RUN: llvm-ranlib %t.MacOSX.a
55 ;RUN: llvm-ar t %t.MacOSX.a > %t1
66 ;RUN: diff %t1 %p/MacOSX.toc
7 ;XFAIL: *
44 ;RUN: llvm-ranlib %t.SVR4.a
55 ;RUN: llvm-ar t %t.SVR4.a > %t1
66 ;RUN: diff %t1 %p/SVR4.toc
7
7 ;XFAIL: *
44 ;RUN: llvm-ranlib %t.xpg4.a
55 ;RUN: llvm-ar t %t.xpg4.a > %t1
66 ;RUN: diff %t1 %p/xpg4.toc
7 ;XFAIL: *
78
11 ; "crafty" spec benchmark.
22 ;
33 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | llvm-as
4 ;XFAIL: *
45
56 %CHESS_POSITION = type { uint, int }
67
0 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep getelementptr
1 ; XFAIL: *
12
23 %A = external global { float } ; <{ float }*> [#uses=1]
34 global int* cast (float* getelementptr ({ float }* %A, long 0, ubyte 0) to int*)
0 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \
11 ; RUN: not grep {getelementptr.*getelementptr}
2 ; XFAIL: *
23
34 %struct.TUVVertex = type { short, short, short, short }
45 %struct.TTriangleItem = type { sbyte*, sbyte*, [3 x %struct.TUVVertex] }
0 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
1 // XFAIL: *
12
23 struct Pass {} ;
34 template
1111 // RUN: grep xstatnoWeak | grep internal | wc -l | grep 1
1212 // RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
1313 // RUN: grep xextnoWeak | grep linkonce | wc -l | grep 1
14 // XFAIL: *
1415 inline int xglobWeak(int) __attribute__((weak));
1516 inline int xglobWeak (int i) {
1617 return i*2;
0 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
1 // XFAIL: *
12
23 /* Provide Declarations */
34
0 /* RUN: %llvmgcc -xc %s -c -o - | llvm-dis | not grep cast
1 XFAIL: *
12 */
23
34 void test(int* array, long long N) {
0 // RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | wc -l | grep 2
1 // XFAIL: *
12
23 unsigned t2(unsigned X) {
34 return __builtin_clz(X);
55 ; RUN: grep align.*3 | wc | grep 2
66 ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
77 ; RUN: grep align.*2 | wc | grep 4
8 ; XFAIL: *
89
910 %a = global bool true
1011 %b = global sbyte 1
11 ; RUN: llvm-as < %s | llc -mtriple=arm-linux | grep mov | wc -l | grep 1 &&
22 ; RUN: llvm-as < %s | llc -mtriple=arm-linux --disable-fp-elim | grep mov | wc -l | grep 2
33 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep mov | wc -l | grep 2
4 ; XFAIL: *
45
56 @str = internal constant [12 x i8] c"Hello World\00"
67
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | not grep cmovlt
11 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmoveq
2 ; XFAIL: *
23
34 long %cmov_lt(long %a, long %c) {
45 entry:
33 ; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev6 | not grep -i ctlz
44 ; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev56 | not grep -i ctlz
55 ; RUN: llvm-as < %s | llc -march=alpha -mattr=-CIX | not grep -i ctlz
6 ; XFAIL: *
67
78 declare i32 @llvm.ctlz.i8(i8)
89
0 ; Make sure this testcase does not use ctpop
11 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | not grep -i ctpop
2 ; XFAIL: *
23
34 declare ulong %llvm.ctlz(ulong)
45
77 ; RUN: not grep -i ctpop
88 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | \
99 ; RUN: not grep -i 'ctpop'
10 ; XFAIL: *
1011
1112 declare long %llvm.ctpop(long)
1213
44 ; everything up. :( Test that this does not happen anymore.
55 ;
66 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep _memcpy
7 ; XFAIL: *
78
89 declare void %llvm.memcpy(sbyte*, sbyte*, uint,uint)
910 declare float* %memcpy(int*, uint,int)
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep -- -65535
1 ; XFAIL: *
2
13 ; ModuleID = ''
24 target endian = little
35 target pointersize = 32
0 ; RUN: llvm-upgrade < %s | llvm-as | llc
1 ; XFAIL: *
12
23 void ""(float* %inregs, float* %outregs) {
34 %a_addr.i = alloca <4 x float> ; <<4 x float>*> [#uses=1]
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep ESP | not grep sub
1 ; XFAIL: *
12
23 int %test(int %X) {
34 ret int %X
None ; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -mcpu=yonah -march=x86 > %t &&
1 ; RUN: grep fldl %t | wc -l | grep 1 &&
0 ; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8 -mcpu=yonah -march=x86 > %t
1 ; RUN: grep fldl %t | wc -l | grep 1
22 ; RUN: not grep xmm %t &&
3 ; RUN: grep 'sub.*esp' %t | wc -l | grep 1
3 ; RUN: grep {sub.*esp} %t | wc -l | grep 1
44
55 ; These testcases shouldn't require loading into an XMM register then storing
66 ; to memory, then reloading into an FPStack reg.
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
11 ; RUN: grep ST | not grep {fadd\\|fsub\\|fdiv\\|fmul}
2 ; XFAIL: *
23
34 ; Test that the load of the constant is folded into the operation.
45
0 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
11 ; RUN: grep ST | not grep {fadd\\|fsub\\|fdiv\\|fmul}
2 ; XFAIL: *
23
34 ; Test that the load of the memory location is folded into the operation.
45
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep test
1 ; XFAIL: *
12
23 define float @test1(float %a, float %b) {
34 %tmp = tail call float @copysignf( float %b, float %a )
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -enable-x86-sse &&
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -enable-x86-sse | not grep movss
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -enable-x86-sse | not grep xmm
0 ; RUN: llvm-upgrade < %s | llvm-as | \
1 ; RUN: llc -march=x86 -mcpu=yonah -enable-x86-sse | not grep movss
2 ; RUN: llvm-upgrade < %s | llvm-as | \
3 ; RUN: llc -march=x86 -mcpu=yonah -enable-x86-sse | not grep xmm
4 ; XFAIL: *
35
46 double %test1(double *%P) {
57 %X = load double* %P
11 ; RUN: grep {subl.*60}
22 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
33 ; RUN: grep {movdqa.*32}
4 ; XFAIL: *
45
56 void %test() {
67 tail call void %xx( int 1, int 2, int 3, int 4, int 5, int 6, int 7, <2 x long> cast (<4 x int> < int 4, int 3, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 7, int 6, int 5 > to <2 x long>), <2 x long> cast (<4 x int> < int 6, int 4, int 2, int 0 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 4, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 0, int 1, int 3, int 9 > to <2 x long>) )
11 ; a global that is dead. Make sure any globals they refer to die as well.
22
33 ; RUN: llvm-upgrade < %s | llvm-as | opt -globaldce | llvm-dis | not grep foo
4 ; XFAIL: *
45
56 %b = internal global int ()* %foo ;; Unused, kills %foo
67
11
22 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | \
33 ; RUN: not grep internal
4 ; XFAIL: *
45
56 %G0 = internal global [58 x sbyte] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00"
67
33 ;
44 ; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -adce -simplifycfg | \
55 ; RUN: llvm-dis | not grep br
6 ; XFAIL: *
67
78 int %polynomial_constant() {
89 br label %Loop