llvm.org GIT mirror llvm / 68df750
Removed colons from some target datalayout strings in test, since they don't match the required format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141825 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 8 years ago
17 changed file(s) with 17 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt < %s -indvars -S | not grep {sext}
11 ; ModuleID = ''
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
33 target triple = "x86_64-apple-darwin9.6"
44 @a = external global i32* ; [#uses=3]
55 @b = external global i32* ; [#uses=3]
1212 ; d[(i+2)&15] = e[(i+2)&15]+f[(i+2)&15]+K[i+2];
1313 ; }
1414 ;}
15 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
15 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
1616 target triple = "x86_64-apple-darwin9.6"
1717 @a = external global i32* ; [#uses=3]
1818 @b = external global i32* ; [#uses=3]
1313 ; CHECK-NOT: {{sext|zext|add i8}}
1414
1515 ; ModuleID = 'ada.bc'
16 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-n:8:16:32"
16 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-n8:16:32"
1717 target triple = "i686-pc-linux-gnu"
1818
1919 define void @kinds__sbytezero([256 x i32]* nocapture %a) nounwind {
88 ; be able to reconstruct the full getelementptr, despite it having a few
99 ; obstacles set in its way.
1010
11 target datalayout = "e-p:64:64:64-n:32:64"
11 target datalayout = "e-p:64:64:64-n32:64"
1212
1313 define void @foo(i64 %n, i64 %m, i64 %o, i64 %q, double* nocapture %p) nounwind {
1414 entry:
33 ; Indvars should be able to eliminate all of the sign extensions
44 ; inside the loop.
55
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
77 @pow_2_tab = external constant [0 x float] ; <[0 x float]*> [#uses=1]
88 @pow_2_025_tab = external constant [0 x float] ; <[0 x float]*> [#uses=1]
99 @i_pow_2_tab = external constant [0 x float] ; <[0 x float]*> [#uses=1]
0 ; RUN: opt < %s -indvars -enable-iv-rewrite=false -S | FileCheck %s
11
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
33
44 ; Indvars should be able to fold IV increments into shr when low bits are zero.
55 ;
33 ; inner loop to i64.
44 ; TODO: it should promote hiPart to i64 in the outer loop too.
55
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
77
88 define void @t(float* %pTmp1, float* %peakWeight, float* %nrgReducePeakrate, i32 %bandEdgeIndex, float %tmp1) nounwind {
99 entry:
22 ; CHECK-NOT: and
33 ; CHECK-NOT: zext
44
5 target datalayout = "-p:64:64:64-n:32:64"
5 target datalayout = "-p:64:64:64-n32:64"
66
77 define void @foo(double* %d, i64 %n) nounwind {
88 entry:
11 ; CHECK-NOT: {{inttoptr|ptrtoint}}
22 ; CHECK: scevgep
33 ; CHECK-NOT: {{inttoptr|ptrtoint}}
4 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n:32:64"
4 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n32:64"
55
66 ; Indvars shouldn't need inttoptr/ptrtoint to expand an address here.
77
1313
1414 ; FIXME: This test should pass with or without TargetData. Until opt
1515 ; supports running tests without targetdata, just hardware this in.
16 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
16 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
1717
1818 %struct.Q = type { [10 x %struct.N] }
1919 %struct.N = type { %struct.S }
0 ; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
11 ; CHECK: %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 2, i64 %0, i64 1
2 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n:32:64"
2 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128-n32:64"
33
44 ; Indvars shouldn't expand this to
55 ; %p.2.ip.1 = getelementptr [3 x [3 x double]]* %p, i64 0, i64 %tmp, i64 19
55 ; Indvars shouldn't leave getelementptrs expanded out as
66 ; inttoptr+ptrtoint in its output in common cases.
77
8 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
8 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
99 target triple = "x86_64-unknown-linux-gnu"
1010 %struct.Foo = type { i32, i32, [10 x i32], i32 }
1111
66 ; that indvars can promote the induction variable to i64
77 ; without needing casts.
88
9 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n:32:64"
9 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n32:64"
1010
1111 define float @t(float* %pTmp1, float* %peakWeight, i32 %bandEdgeIndex) nounwind {
1212 entry:
11 ; RUN: opt < %s -loop-reduce -S | \
22 ; RUN: not grep {getelementptr.*%outer.*%INDVAR}
33
4 target datalayout = "e-p:32:32:32-n:8:16:32"
4 target datalayout = "e-p:32:32:32-n8:16:32"
55 declare i1 @pred()
66
77 declare i32 @foo()
11 ; RUN: opt < %s -loop-reduce -S | \
22 ; RUN: not grep {getelementptr.*%outer.*%INDVAR}
33
4 target datalayout = "e-p:32:32:32-n:32"
4 target datalayout = "e-p:32:32:32-n32"
55 declare i1 @pred()
66
77 define void @test([10000 x i32]* %P, i32 %outer) {
22
33 ; RUN: opt < %s -loop-reduce -S | not grep INDVAR
44
5 target datalayout = "e-p:32:32:32-n:32"
5 target datalayout = "e-p:32:32:32-n32"
66
77 declare i1 @pred()
88
88
99 ; mul uint %i, 3
1010
11 target datalayout = "e-p:32:32-n:32"
11 target datalayout = "e-p:32:32-n32"
1212 target triple = "i686-apple-darwin8"
1313 @flags2 = external global [8193 x i8], align 32 ; <[8193 x i8]*> [#uses=1]
1414