llvm.org GIT mirror llvm / a42a757
Make tests more useful. lit needs a linter ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130126 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 8 years ago
8 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
3131 ; CHECK-NOT: =>
3232 ; CHECK: [0] entry =>
3333 ; CHECK-NEXT: [1] __label_002001.outer => __label_000020
34 ; CHECK-NEXT; [2] bb197 => bb229
35 ; CHECK-NEXT; [3] bb224 => bb229
34 ; CHECK-NEXT: [2] bb197 => bb229
35 ; CHECK-NEXT: [3] bb224 => bb229
3636
3737 ; STAT: 4 region - The # of regions
3838 ; STAT: 1 region - The # of simple regions
55
66 declare double @exp(double)
77
8 ; CHECK remat_subreg
8 ; CHECK: remat_subreg
99 define void @remat_subreg(float* nocapture %x, i32* %y, i32 %n, i32 %z, float %c, float %lambda, float* nocapture %ret_f, float* nocapture %ret_df) nounwind {
1010 entry:
1111 %conv16 = fpext float %lambda to double
6363 define ptx_device i16 @t1_u16(i16* %p) {
6464 entry:
6565 ;CHECK: ld.global.u16 rh0, [r1];
66 ;CHECK-NEXT; ret;
66 ;CHECK-NEXT: ret;
6767 %x = load i16* %p
6868 ret i16 %x
6969 }
5252 ; rdar://9177502
5353 define i32 @f5(i32 %a, i32 %b) nounwind readnone {
5454 entry:
55 ; CHECK f5
55 ; CHECK: f5
5656 ; CHECK-NOT: bfi r0, r2, #0, #1
5757 %and = and i32 %a, 2
5858 %b.masked = and i32 %b, -2
None ; RUN: llc < %s -march=thumb -mattr=+thumb2
0 ; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
11
22 define i1 @test1(i64 %poscnt, i32 %work) {
33 entry:
4 ; CHECK: lsrs.w r1, r1, #1
45 ; CHECK: rrx r0, r0
5 ; CHECK: lsrs.w r1, r1, #1
66 %0 = lshr i64 %poscnt, 1
77 %1 = icmp eq i64 %0, 0
88 ret i1 %1
1010
1111 define i1 @test2(i64 %poscnt, i32 %work) {
1212 entry:
13 ; CHECK: asrs.w r1, r1, #1
1314 ; CHECK: rrx r0, r0
14 ; CHECK: asrs.w r1, r1, #1
1515 %0 = ashr i64 %poscnt, 1
1616 %1 = icmp eq i64 %0, 0
1717 ret i1 %1
None ; RUN: llc -march=x86 -relocation-model=pic < %s
0 ; RUN: llc -fast-isel -O0 -march=x86 -relocation-model=pic < %s | FileCheck %s
11
22 ; This should use flds to set the return value.
33 ; CHECK: test0:
None ; RUN: llc < %s -march=x86 -mattr=+sse2,-avx
0 ; RUN: llc < %s -march=x86 -mattr=+sse2,-avx | FileCheck %s
11
22 define <1 x float> @test1(<1 x double> %x) nounwind {
33 ; CHECK: cvtsd2ss
None ; RUN: llc < %s -march=x86-64 -relocation-model=static -mtriple=x86_64-unknown-linux-gnu
0 ; RUN: llc < %s -march=x86-64 -relocation-model=static -mtriple=x86_64-unknown-linux-gnu -asm-verbose=0 | FileCheck %s
11
22 ; The inner loop should require only one add (and no leas either).
33 ; rdar://8100380
44
5 ; CHECK: BB0_4:
5 ; CHECK: BB0_3:
66 ; CHECK-NEXT: movb $0, flags(%rdx)
77 ; CHECK-NEXT: addq %rcx, %rdx
88 ; CHECK-NEXT: cmpq $8192, %rdx