diff options
| author | Eli Friedman <efriedma@codeaurora.org> | 2018-10-18 19:34:30 +0000 |
|---|---|---|
| committer | Eli Friedman <efriedma@codeaurora.org> | 2018-10-18 19:34:30 +0000 |
| commit | b09c7787154f227c6719ba595a7e0ea959f41650 (patch) | |
| tree | dda6bf931728eed408041f76492cb95d902a4389 /llvm/test/CodeGen | |
| parent | 98a6692380d7d6d8f92c6cc8b77f4e8ec3ca0a05 (diff) | |
| download | bcm5719-llvm-b09c7787154f227c6719ba595a7e0ea959f41650.tar.gz bcm5719-llvm-b09c7787154f227c6719ba595a7e0ea959f41650.zip | |
Revert r344693 ("[ARM] bottom-top mul support in ARMParallelDSP")
Still causing failures on the polly-aosp buildbot; I'll follow up
with a reduced testcase.
llvm-svn: 344752
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-multi-use.ll | 74 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg-vec.ll | 98 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg.ll | 210 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-order.ll | 54 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/ParallelDSP/top-bottom.ll | 252 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad0.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad0.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad1.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad1.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad10.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad10.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad11.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad11.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad12.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad12.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad2.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad2.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad3.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad3.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad4.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad4.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad5.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad5.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad6.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad6.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad7.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad7.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad8.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad8.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlad9.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlad9.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smladx-1.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smladx-1.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlald0.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlald0.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlald1.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlald1.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlald2.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlald2.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlaldx-1.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-1.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/smlaldx-2.ll (renamed from llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-2.ll) | 0 |
24 files changed, 0 insertions, 688 deletions
diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-multi-use.ll b/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-multi-use.ll deleted file mode 100644 index ed2b3fedbb6..00000000000 --- a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-multi-use.ll +++ /dev/null @@ -1,74 +0,0 @@ -; RUN: opt -mtriple=thumbv8m.main -mcpu=cortex-m33 -S -arm-parallel-dsp %s -o - | FileCheck %s -; RUN: opt -mtriple=thumbv7a-linux-android -arm-parallel-dsp -S %s -o - | FileCheck %s - -; CHECK-LABEL: sext_multi_use_undef -define void @sext_multi_use_undef() { -entry: - br label %for.body - -for.body: - %0 = load i16, i16* undef, align 2 - %conv3 = sext i16 %0 to i32 - %1 = load i16, i16* undef, align 2 - %conv7 = sext i16 %1 to i32 - %mul8 = mul nsw i32 %conv7, %conv3 - %x.addr.180 = getelementptr inbounds i16, i16* undef, i32 1 - %2 = load i16, i16* %x.addr.180, align 2 - %conv1582 = sext i16 %2 to i32 - %mul.i7284 = mul nsw i32 %conv7, %conv1582 - br label %for.body -} - -; CHECK-LABEL: sext_multi_use -; CHECK: [[PtrA:%[^ ]+]] = bitcast i16* %a to i32* -; CHECK: [[DataA:%[^ ]+]] = load i32, i32* [[PtrA]], align 2 -; CHECK: [[Top:%[^ ]+]] = ashr i32 [[DataA]], 16 -; CHECK: [[Shl:%[^ ]+]] = shl i32 [[DataA]], 16 -; CHECK: [[Bottom:%[^ ]+]] = ashr i32 [[Shl]], 16 -; CHECK: [[DataB:%[^ ]+]] = load i16, i16* %b, align 2 -; CHECK: [[SextB:%[^ ]+]] = sext i16 [[DataB]] to i32 -; CHECK: [[Mul0:%[^ ]+]] = mul nsw i32 [[SextB]], [[Bottom]] -; CHECK: [[Mul1:%[^ ]+]] = mul nsw i32 [[SextB]], [[Top]] -define void @sext_multi_use(i16* %a, i16* %b) { -entry: - br label %for.body - -for.body: - %0 = load i16, i16* %a, align 2 - %conv3 = sext i16 %0 to i32 - %1 = load i16, i16* %b, align 2 - %conv7 = sext i16 %1 to i32 - %mul8 = mul nsw i32 %conv7, %conv3 - %x.addr.180 = getelementptr inbounds i16, i16* %a, i32 1 - %2 = load i16, i16* %x.addr.180, align 2 - %conv1582 = sext i16 %2 to i32 - %mul.i7284 = mul nsw i32 %conv7, %conv1582 - br label %for.body -} - -; CHECK-LABEL: sext_multi_use_reorder -; CHECK: [[PtrA:%[^ ]+]] = bitcast i16* %a to i32* -; CHECK: [[DataA:%[^ ]+]] = load i32, i32* [[PtrA]], align 2 -; CHECK: [[Top:%[^ ]+]] = ashr i32 [[DataA]], 16 -; CHECK: [[Shl:%[^ ]+]] = shl i32 [[DataA]], 16 -; CHECK: [[Bottom:%[^ ]+]] = ashr i32 [[Shl]], 16 -; CHECK: [[Mul0:%[^ ]+]] = mul nsw i32 [[Top]], [[Bottom]] -; CHECK: [[DataB:%[^ ]+]] = load i16, i16* %b, align 2 -; CHECK: [[SextB:%[^ ]+]] = sext i16 [[DataB]] to i32 -; CHECK: [[Mul1:%[^ ]+]] = mul nsw i32 [[Top]], [[SextB]] -define void @sext_multi_use_reorder(i16* %a, i16* %b) { -entry: - br label %for.body - -for.body: - %0 = load i16, i16* %a, align 2 - %conv3 = sext i16 %0 to i32 - %x.addr.180 = getelementptr inbounds i16, i16* %a, i32 1 - %1 = load i16, i16* %x.addr.180, align 2 - %conv7 = sext i16 %1 to i32 - %mul8 = mul nsw i32 %conv7, %conv3 - %2 = load i16, i16* %b, align 2 - %conv1582 = sext i16 %2 to i32 - %mul.i7284 = mul nsw i32 %conv7, %conv1582 - br label %for.body -} diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg-vec.ll b/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg-vec.ll deleted file mode 100644 index ea60c656a06..00000000000 --- a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg-vec.ll +++ /dev/null @@ -1,98 +0,0 @@ -; RUN: opt -mtriple=thumbv7-unknown-linux-android -arm-parallel-dsp -S %s -o - | FileCheck %s - -@a = local_unnamed_addr global i32 0, align 4 -@b = local_unnamed_addr global i8* null, align 4 -@c = local_unnamed_addr global i8 0, align 1 -@d = local_unnamed_addr global i16* null, align 4 - -; CHECK-LABEL: @convolve -; CHECK-NOT: bitcast i16* [[ANY:%[^ ]+]] to i32* -define void @convolve() local_unnamed_addr #0 { -entry: - br label %for.cond - -for.cond: - %e.0 = phi i32 [ undef, %entry ], [ %e.1.lcssa, %for.end ] - %f.0 = phi i32 [ undef, %entry ], [ %f.1.lcssa, %for.end ] - %g.0 = phi i32 [ undef, %entry ], [ %g.1.lcssa, %for.end ] - %cmp13 = icmp slt i32 %g.0, 1 - br i1 %cmp13, label %for.body.lr.ph, label %for.end - -for.body.lr.ph: - %0 = load i16*, i16** @d, align 4 - %1 = load i8*, i8** @b, align 4 - %2 = load i32, i32* @a, align 4 - %3 = sub i32 1, %g.0 - %min.iters.check = icmp ugt i32 %3, 3 - %ident.check = icmp eq i32 %2, 1 - %or.cond = and i1 %min.iters.check, %ident.check - br i1 %or.cond, label %vector.ph, label %for.body.preheader - -vector.ph: - %n.vec = and i32 %3, -4 - %ind.end = add i32 %g.0, %n.vec - %4 = mul i32 %2, %n.vec - %ind.end20 = add i32 %f.0, %4 - %5 = insertelement <4 x i32> <i32 undef, i32 0, i32 0, i32 0>, i32 %e.0, i32 0 - br label %vector.body - -vector.body: - %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ] - %vec.phi = phi <4 x i32> [ %5, %vector.ph ], [ %14, %vector.body ] - %offset.idx = add i32 %g.0, %index - %6 = mul i32 %2, %index - %offset.idx21 = add i32 %f.0, %6 - %7 = getelementptr inbounds i16, i16* %0, i32 %offset.idx - %8 = bitcast i16* %7 to <4 x i16>* - %wide.load = load <4 x i16>, <4 x i16>* %8, align 2 - %9 = sext <4 x i16> %wide.load to <4 x i32> - %10 = getelementptr inbounds i8, i8* %1, i32 %offset.idx21 - %11 = bitcast i8* %10 to <4 x i8>* - %wide.load25 = load <4 x i8>, <4 x i8>* %11, align 1 - %12 = zext <4 x i8> %wide.load25 to <4 x i32> - %13 = mul nsw <4 x i32> %12, %9 - %14 = add nsw <4 x i32> %13, %vec.phi - %index.next = add i32 %index, 4 - %15 = icmp eq i32 %index.next, %n.vec - br i1 %15, label %middle.block, label %vector.body - -middle.block: - %rdx.shuf = shufflevector <4 x i32> %14, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 undef, i32 undef> - %bin.rdx = add <4 x i32> %14, %rdx.shuf - %rdx.shuf26 = shufflevector <4 x i32> %bin.rdx, <4 x i32> undef, <4 x i32> <i32 1, i32 undef, i32 undef, i32 undef> - %bin.rdx27 = add <4 x i32> %bin.rdx, %rdx.shuf26 - %16 = extractelement <4 x i32> %bin.rdx27, i32 0 - %cmp.n = icmp eq i32 %3, %n.vec - br i1 %cmp.n, label %for.end, label %for.body.preheader - -for.body.preheader: - %g.116.ph = phi i32 [ %g.0, %for.body.lr.ph ], [ %ind.end, %middle.block ] - %f.115.ph = phi i32 [ %f.0, %for.body.lr.ph ], [ %ind.end20, %middle.block ] - %e.114.ph = phi i32 [ %e.0, %for.body.lr.ph ], [ %16, %middle.block ] - br label %for.body - -for.body: - %g.116 = phi i32 [ %inc, %for.body ], [ %g.116.ph, %for.body.preheader ] - %f.115 = phi i32 [ %add4, %for.body ], [ %f.115.ph, %for.body.preheader ] - %e.114 = phi i32 [ %add, %for.body ], [ %e.114.ph, %for.body.preheader ] - %arrayidx = getelementptr inbounds i16, i16* %0, i32 %g.116 - %17 = load i16, i16* %arrayidx, align 2 - %conv = sext i16 %17 to i32 - %arrayidx2 = getelementptr inbounds i8, i8* %1, i32 %f.115 - %18 = load i8, i8* %arrayidx2, align 1 - %conv3 = zext i8 %18 to i32 - %mul = mul nsw i32 %conv3, %conv - %add = add nsw i32 %mul, %e.114 - %inc = add nsw i32 %g.116, 1 - %add4 = add nsw i32 %2, %f.115 - %cmp = icmp slt i32 %g.116, 0 - br i1 %cmp, label %for.body, label %for.end - -for.end: - %e.1.lcssa = phi i32 [ %e.0, %for.cond ], [ %16, %middle.block ], [ %add, %for.body ] - %f.1.lcssa = phi i32 [ %f.0, %for.cond ], [ %ind.end20, %middle.block ], [ %add4, %for.body ] - %g.1.lcssa = phi i32 [ %g.0, %for.cond ], [ %ind.end, %middle.block ], [ %inc, %for.body ] - %conv5 = trunc i32 %e.1.lcssa to i8 - store i8 %conv5, i8* @c, align 1 - br label %for.cond -} diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg.ll b/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg.ll deleted file mode 100644 index 0c4aaeee7cc..00000000000 --- a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-neg.ll +++ /dev/null @@ -1,210 +0,0 @@ -; RUN: opt -mtriple=arm-arm-eabi -mcpu=cortex-m33 < %s -arm-parallel-dsp -S | FileCheck %s -; RUN: opt -mtriple=thumbv7a-linux-android -arm-parallel-dsp -S %s -o - | FileCheck %s - -; CHECK-LABEL: topbottom_mul_alias -; CHECK-NOT: bitcast i16* -define void @topbottom_mul_alias(i32 %N, i32* nocapture readnone %Out, i16* nocapture readonly %In1, i16* nocapture readonly %In2) { -entry: - br label %for.body - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn1.0 = getelementptr inbounds i16, i16* %In1, i32 %iv - %In1.0 = load i16, i16* %PIn1.0, align 2 - %SIn1.0 = sext i16 %In1.0 to i32 - %PIn2.0 = getelementptr inbounds i16, i16* %In2, i32 %iv - %In2.0 = load i16, i16* %PIn2.0, align 2 - %SIn2.0 = sext i16 %In2.0 to i32 - %mul5.us.i.i = mul nsw i32 %SIn1.0, %SIn2.0 - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn1.1 = getelementptr inbounds i16, i16* %In1, i32 %iv.1 - %In1.1 = load i16, i16* %PIn1.1, align 2 - %SIn1.1 = sext i16 %In1.1 to i32 - %PIn2.1 = getelementptr inbounds i16, i16* %In2, i32 %iv.1 - %In2.1 = load i16, i16* %PIn2.1, align 2 - %SIn2.1 = sext i16 %In2.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %SIn1.1, %SIn2.1 - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn1.2 = getelementptr inbounds i16, i16* %In1, i32 %iv.2 - %In1.2 = load i16, i16* %PIn1.2, align 2 - %SIn1.2 = sext i16 %In1.2 to i32 - %PIn2.2 = getelementptr inbounds i16, i16* %In2, i32 %iv.2 - %In2.2 = load i16, i16* %PIn2.2, align 2 - %SIn2.2 = sext i16 %In2.2 to i32 - %mul5.us.i.2.i = mul nsw i32 %SIn1.2, %SIn2.2 - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn1.3 = getelementptr inbounds i16, i16* %In1, i32 %iv.3 - %In1.3 = load i16, i16* %PIn1.3, align 2 - %SIn1.3 = sext i16 %In1.3 to i32 - %PIn2.3 = getelementptr inbounds i16, i16* %In2, i32 %iv.3 - %In2.3 = load i16, i16* %PIn2.3, align 2 - %SIn2.3 = sext i16 %In2.3 to i32 - %mul5.us.i.3.i = mul nsw i32 %SIn1.3, %SIn2.3 - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} - -; TODO: We should be able to handle this by splatting the const value. -; CHECK-LABEL: topbottom_mul_const -; CHECK-NOT: bitcast i16* -define void @topbottom_mul_const(i32 %N, i32* noalias nocapture readnone %Out, i16* nocapture readonly %In, i16 signext %const) { -entry: - %conv4.i.i = sext i16 %const to i32 - br label %for.body - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn.0 = getelementptr inbounds i16, i16* %In, i32 %iv - %In.0 = load i16, i16* %PIn.0, align 2 - %conv.us.i144.i = sext i16 %In.0 to i32 - %mul5.us.i.i = mul nsw i32 %conv.us.i144.i, %conv4.i.i - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn.1 = getelementptr inbounds i16, i16* %In, i32 %iv.1 - %In.1 = load i16, i16* %PIn.1, align 2 - %conv.us.i144.1.i = sext i16 %In.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %conv.us.i144.1.i, %conv4.i.i - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn.2 = getelementptr inbounds i16, i16* %In, i32 %iv.2 - %In.3 = load i16, i16* %PIn.2, align 2 - %conv.us.i144.2.i = sext i16 %In.3 to i32 - %mul5.us.i.2.i = mul nsw i32 %conv.us.i144.2.i, %conv4.i.i - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn.3 = getelementptr inbounds i16, i16* %In, i32 %iv.3 - %In.4 = load i16, i16* %PIn.3, align 2 - %conv.us.i144.3.i = sext i16 %In.4 to i32 - %mul5.us.i.3.i = mul nsw i32 %conv.us.i144.3.i, %conv4.i.i - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} - -; TODO: We should be able to handle this and use smulwt and smulwb. -; CHECK-LABEL: topbottom_mul_word_load_const -; CHECK-NOT: bitcast i16* -define void @topbottom_mul_word_load_const(i32 %N, i32* noalias nocapture readnone %Out, i16* nocapture readonly %In, i32* %C) { -entry: - %const = load i32, i32* %C - br label %for.body - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn.0 = getelementptr inbounds i16, i16* %In, i32 %iv - %In.0 = load i16, i16* %PIn.0, align 2 - %conv.us.i144.i = sext i16 %In.0 to i32 - %mul5.us.i.i = mul nsw i32 %conv.us.i144.i, %const - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn.1 = getelementptr inbounds i16, i16* %In, i32 %iv.1 - %In.1 = load i16, i16* %PIn.1, align 2 - %conv.us.i144.1.i = sext i16 %In.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %conv.us.i144.1.i, %const - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn.2 = getelementptr inbounds i16, i16* %In, i32 %iv.2 - %In.3 = load i16, i16* %PIn.2, align 2 - %conv.us.i144.2.i = sext i16 %In.3 to i32 - %mul5.us.i.2.i = mul nsw i32 %conv.us.i144.2.i, %const - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn.3 = getelementptr inbounds i16, i16* %In, i32 %iv.3 - %In.4 = load i16, i16* %PIn.3, align 2 - %conv.us.i144.3.i = sext i16 %In.4 to i32 - %mul5.us.i.3.i = mul nsw i32 %conv.us.i144.3.i, %const - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} - -; CHECK-LABEL: topbottom_mul_8 -; CHECK-NOT: bitcast i16* -define void @topbottom_mul_8(i32 %N, i32* noalias nocapture readnone %Out, i8* nocapture readonly %In1, i8* nocapture readonly %In2) { -entry: - br label %for.body - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn1.0 = getelementptr inbounds i8, i8* %In1, i32 %iv - %In1.0 = load i8, i8* %PIn1.0, align 1 - %SIn1.0 = sext i8 %In1.0 to i32 - %PIn2.0 = getelementptr inbounds i8, i8* %In2, i32 %iv - %In2.0 = load i8, i8* %PIn2.0, align 1 - %SIn2.0 = sext i8 %In2.0 to i32 - %mul5.us.i.i = mul nsw i32 %SIn1.0, %SIn2.0 - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn1.1 = getelementptr inbounds i8, i8* %In1, i32 %iv.1 - %In1.1 = load i8, i8* %PIn1.1, align 1 - %SIn1.1 = sext i8 %In1.1 to i32 - %PIn2.1 = getelementptr inbounds i8, i8* %In2, i32 %iv.1 - %In2.1 = load i8, i8* %PIn2.1, align 1 - %SIn2.1 = sext i8 %In2.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %SIn1.1, %SIn2.1 - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn1.2 = getelementptr inbounds i8, i8* %In1, i32 %iv.2 - %In1.2 = load i8, i8* %PIn1.2, align 1 - %SIn1.2 = sext i8 %In1.2 to i32 - %PIn2.2 = getelementptr inbounds i8, i8* %In2, i32 %iv.2 - %In2.2 = load i8, i8* %PIn2.2, align 1 - %SIn2.2 = sext i8 %In2.2 to i32 - %mul5.us.i.2.i = mul nsw i32 %SIn1.2, %SIn2.2 - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn1.3 = getelementptr inbounds i8, i8* %In1, i32 %iv.3 - %In1.3 = load i8, i8* %PIn1.3, align 1 - %SIn1.3 = sext i8 %In1.3 to i32 - %PIn2.3 = getelementptr inbounds i8, i8* %In2, i32 %iv.3 - %In2.3 = load i8, i8* %PIn2.3, align 1 - %SIn2.3 = sext i8 %In2.3 to i32 - %mul5.us.i.3.i = mul nsw i32 %SIn1.3, %SIn2.3 - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-order.ll b/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-order.ll deleted file mode 100644 index e78afc80f15..00000000000 --- a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom-order.ll +++ /dev/null @@ -1,54 +0,0 @@ -; RUN: opt -mtriple=thumbv8m.main -mcpu=cortex-m33 -arm-parallel-dsp -S %s -o - | FileCheck %s -; RUN: opt -mtriple=thumbv7a-linux-android -arm-parallel-dsp -S %s -o - | FileCheck %s - -; CHECK-LABEL: reorder_gep_arguments -; CHECK: [[Sub:%[^ ]+]] = xor i32 %iv, -1 -; CHECK: [[IdxPtr:%[^ ]+]] = getelementptr inbounds i16, i16* %arrayidx.us, i32 [[Sub]] -; CHECK: [[IdxPtrCast:%[^ ]+]] = bitcast i16* [[IdxPtr]] to i32* -; CHECK: [[Idx:%[^ ]+]] = load i32, i32* [[IdxPtrCast]], align 2 -; CHECK: [[Top:%[^ ]+]] = ashr i32 [[Idx]], 16 -; CHECK: [[Shl:%[^ ]+]] = shl i32 [[Idx]], 16 -; CHECK: [[Bottom:%[^ ]+]] = ashr i32 [[Shl]], 16 -; CHECK: [[BPtr:%[^ ]+]] = getelementptr inbounds i16, i16* %B, i32 %iv -; CHECK: [[BData:%[^ ]+]] = load i16, i16* [[BPtr]], align 2 -; CHECK: [[BSext:%[^ ]+]] = sext i16 [[BData]] to i32 -; CHECK: [[Mul0:%[^ ]+]] = mul nsw i32 [[BSext]], [[Top]] -; CHECK: [[BPtr1:%[^ ]+]] = getelementptr inbounds i16, i16* %B, i32 %add48.us -; CHECK: [[BData1:%[^ ]+]] = load i16, i16* [[BPtr1]], align 2 -; CHECK: [[B1Sext:%[^ ]+]] = sext i16 [[BData1]] to i32 -; CHECK: [[Mul1:%[^ ]+]] = mul nsw i32 [[B1Sext]], [[Bottom]] - -define i32 @reorder_gep_arguments(i16* %B, i16* %arrayidx.us, i32 %d) { -entry: - br label %for.body36.us - -for.body36.us: - %iv = phi i32 [ %add53.us, %for.body36.us ], [ 5, %entry ] - %out32_Q12.0114.us = phi i32 [ %add52.us, %for.body36.us ], [ 0, %entry ] - %sub37.us = sub nsw i32 0, %iv - %arrayidx38.us = getelementptr inbounds i16, i16* %arrayidx.us, i32 %sub37.us - %0 = load i16, i16* %arrayidx38.us, align 2 - %conv39.us = sext i16 %0 to i32 - %arrayidx40.us = getelementptr inbounds i16, i16* %B, i32 %iv - %1 = load i16, i16* %arrayidx40.us, align 2 - %conv41.us = sext i16 %1 to i32 - %mul42.us = mul nsw i32 %conv41.us, %conv39.us - %add43.us = add i32 %mul42.us, %out32_Q12.0114.us - %sub45.us = xor i32 %iv, -1 - %arrayidx46.us = getelementptr inbounds i16, i16* %arrayidx.us, i32 %sub45.us - %2 = load i16, i16* %arrayidx46.us, align 2 - %conv47.us = sext i16 %2 to i32 - %add48.us = or i32 %iv, 1 - %arrayidx49.us = getelementptr inbounds i16, i16* %B, i32 %add48.us - %3 = load i16, i16* %arrayidx49.us, align 2 - %conv50.us = sext i16 %3 to i32 - %mul51.us = mul nsw i32 %conv50.us, %conv47.us - %add52.us = add i32 %add43.us, %mul51.us - %add53.us = add nuw nsw i32 %iv, 2 - %cmp34.us = icmp slt i32 %add53.us, %d - br i1 %cmp34.us, label %for.body36.us, label %exit - -exit: - ret i32 %add52.us -} - diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom.ll b/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom.ll deleted file mode 100644 index e82a5d4e1c9..00000000000 --- a/llvm/test/CodeGen/ARM/ParallelDSP/top-bottom.ll +++ /dev/null @@ -1,252 +0,0 @@ -; RUN: opt -mtriple=arm-arm-eabi -mcpu=cortex-m33 < %s -arm-parallel-dsp -S | FileCheck %s -; RUN: opt -mtriple=thumbv7a-linux-android -arm-parallel-dsp -S %s -o - | FileCheck %s - -; CHECK-LABEL: topbottom_mul -define void @topbottom_mul(i32 %N, i32* noalias nocapture readnone %Out, i16* nocapture readonly %In1, i16* nocapture readonly %In2) { -entry: - br label %for.body - -; CHECK: for.body: -; CHECK: [[Cast_PIn1_0:%[^ ]+]] = bitcast i16* %PIn1.0 to i32* -; CHECK: [[PIn1_01:%[^ ]+]] = load i32, i32* [[Cast_PIn1_0]], align 2 -; CHECK: [[PIn1_1:%[^ ]+]] = ashr i32 [[PIn1_01]], 16 -; CHECK: [[PIn1_01_shl:%[^ ]+]] = shl i32 [[PIn1_01]], 16 -; CHECK: [[PIn1_0:%[^ ]+]] = ashr i32 [[PIn1_01_shl]], 16 - -; CHECK: [[Cast_PIn2_0:%[^ ]+]] = bitcast i16* %PIn2.0 to i32* -; CHECK: [[PIn2_01:%[^ ]+]] = load i32, i32* [[Cast_PIn2_0]], align 2 -; CHECK: [[PIn2_1:%[^ ]+]] = ashr i32 [[PIn2_01]], 16 -; CHECK: [[PIn2_01_shl:%[^ ]+]] = shl i32 [[PIn2_01]], 16 -; CHECK: [[PIn2_0:%[^ ]+]] = ashr i32 [[PIn2_01_shl]], 16 - -; CHECK: mul nsw i32 [[PIn1_0]], [[PIn2_0]] -; CHECK: mul nsw i32 [[PIn1_1]], [[PIn2_1]] - -; CHECK: [[Cast_PIn1_2:%[^ ]+]] = bitcast i16* %PIn1.2 to i32* -; CHECK: [[PIn1_23:%[^ ]+]] = load i32, i32* [[Cast_PIn1_2]], align 2 -; CHECK: [[PIn1_3:%[^ ]+]] = ashr i32 [[PIn1_23]], 16 -; CHECK: [[PIn1_23_shl:%[^ ]+]] = shl i32 [[PIn1_23]], 16 -; CHECK: [[PIn1_2:%[^ ]+]] = ashr i32 [[PIn1_23_shl]], 16 - -; CHECK: [[Cast_PIn2_2:%[^ ]+]] = bitcast i16* %PIn2.2 to i32* -; CHECK: [[PIn2_23:%[^ ]+]] = load i32, i32* [[Cast_PIn2_2]], align 2 -; CHECK: [[PIn2_3:%[^ ]+]] = ashr i32 [[PIn2_23]], 16 -; CHECK: [[PIn2_23_shl:%[^ ]+]] = shl i32 [[PIn2_23]], 16 -; CHECK: [[PIn2_2:%[^ ]+]] = ashr i32 [[PIn2_23_shl]], 16 - -; CHECK: mul nsw i32 [[PIn1_2]], [[PIn2_2]] -; CHECK: mul nsw i32 [[PIn1_3]], [[PIn2_3]] - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn1.0 = getelementptr inbounds i16, i16* %In1, i32 %iv - %In1.0 = load i16, i16* %PIn1.0, align 2 - %SIn1.0 = sext i16 %In1.0 to i32 - %PIn2.0 = getelementptr inbounds i16, i16* %In2, i32 %iv - %In2.0 = load i16, i16* %PIn2.0, align 2 - %SIn2.0 = sext i16 %In2.0 to i32 - %mul5.us.i.i = mul nsw i32 %SIn1.0, %SIn2.0 - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn1.1 = getelementptr inbounds i16, i16* %In1, i32 %iv.1 - %In1.1 = load i16, i16* %PIn1.1, align 2 - %SIn1.1 = sext i16 %In1.1 to i32 - %PIn2.1 = getelementptr inbounds i16, i16* %In2, i32 %iv.1 - %In2.1 = load i16, i16* %PIn2.1, align 2 - %SIn2.1 = sext i16 %In2.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %SIn1.1, %SIn2.1 - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn1.2 = getelementptr inbounds i16, i16* %In1, i32 %iv.2 - %In1.2 = load i16, i16* %PIn1.2, align 2 - %SIn1.2 = sext i16 %In1.2 to i32 - %PIn2.2 = getelementptr inbounds i16, i16* %In2, i32 %iv.2 - %In2.2 = load i16, i16* %PIn2.2, align 2 - %SIn2.2 = sext i16 %In2.2 to i32 - %mul5.us.i.2.i = mul nsw i32 %SIn1.2, %SIn2.2 - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn1.3 = getelementptr inbounds i16, i16* %In1, i32 %iv.3 - %In1.3 = load i16, i16* %PIn1.3, align 2 - %SIn1.3 = sext i16 %In1.3 to i32 - %PIn2.3 = getelementptr inbounds i16, i16* %In2, i32 %iv.3 - %In2.3 = load i16, i16* %PIn2.3, align 2 - %SIn2.3 = sext i16 %In2.3 to i32 - %mul5.us.i.3.i = mul nsw i32 %SIn1.3, %SIn2.3 - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} - -; CHECK-LABEL: topbottom_mul_load_const -define void @topbottom_mul_load_const(i32 %N, i32* noalias nocapture readnone %Out, i16* nocapture readonly %In, i16* %C) { -entry: - %const = load i16, i16* %C - %conv4.i.i = sext i16 %const to i32 - br label %for.body - -; CHECK: for.body: -; CHECK: [[Cast_PIn_0:%[^ ]+]] = bitcast i16* %PIn.0 to i32* -; CHECK: [[PIn_01:%[^ ]+]] = load i32, i32* [[Cast_PIn_0]], align 2 -; CHECK: [[PIn_1:%[^ ]+]] = ashr i32 [[PIn_01]], 16 -; CHECK: [[PIn_01_shl:%[^ ]+]] = shl i32 [[PIn_01]], 16 -; CHECK: [[PIn_0:%[^ ]+]] = ashr i32 [[PIn_01_shl]], 16 - -; CHECK: mul nsw i32 [[PIn_0]], %conv4.i.i -; CHECK: mul nsw i32 [[PIn_1]], %conv4.i.i - -; CHECK: [[Cast_PIn_2:%[^ ]+]] = bitcast i16* %PIn.2 to i32* -; CHECK: [[PIn_23:%[^ ]+]] = load i32, i32* [[Cast_PIn_2]], align 2 -; CHECK: [[PIn_3:%[^ ]+]] = ashr i32 [[PIn_23]], 16 -; CHECK: [[PIn_23_shl:%[^ ]+]] = shl i32 [[PIn_23]], 16 -; CHECK: [[PIn_2:%[^ ]+]] = ashr i32 [[PIn_23_shl]], 16 - -; CHECK: mul nsw i32 [[PIn_2]], %conv4.i.i -; CHECK: mul nsw i32 [[PIn_3]], %conv4.i.i - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn.0 = getelementptr inbounds i16, i16* %In, i32 %iv - %In.0 = load i16, i16* %PIn.0, align 2 - %conv.us.i144.i = sext i16 %In.0 to i32 - %mul5.us.i.i = mul nsw i32 %conv.us.i144.i, %conv4.i.i - %Out.0 = getelementptr inbounds i32, i32* %Out, i32 %iv - store i32 %mul5.us.i.i, i32* %Out.0, align 4 - %iv.1 = or i32 %iv, 1 - %PIn.1 = getelementptr inbounds i16, i16* %In, i32 %iv.1 - %In.1 = load i16, i16* %PIn.1, align 2 - %conv.us.i144.1.i = sext i16 %In.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %conv.us.i144.1.i, %conv4.i.i - %Out.1 = getelementptr inbounds i32, i32* %Out, i32 %iv.1 - store i32 %mul5.us.i.1.i, i32* %Out.1, align 4 - %iv.2 = or i32 %iv, 2 - %PIn.2 = getelementptr inbounds i16, i16* %In, i32 %iv.2 - %In.3 = load i16, i16* %PIn.2, align 2 - %conv.us.i144.2.i = sext i16 %In.3 to i32 - %mul5.us.i.2.i = mul nsw i32 %conv.us.i144.2.i, %conv4.i.i - %Out.2 = getelementptr inbounds i32, i32* %Out, i32 %iv.2 - store i32 %mul5.us.i.2.i, i32* %Out.2, align 4 - %iv.3 = or i32 %iv, 3 - %PIn.3 = getelementptr inbounds i16, i16* %In, i32 %iv.3 - %In.4 = load i16, i16* %PIn.3, align 2 - %conv.us.i144.3.i = sext i16 %In.4 to i32 - %mul5.us.i.3.i = mul nsw i32 %conv.us.i144.3.i, %conv4.i.i - %Out.3 = getelementptr inbounds i32, i32* %Out, i32 %iv.3 - store i32 %mul5.us.i.3.i, i32* %Out.3, align 4 - %iv.next = add i32 %iv, 4 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} - -; CHECK-LABEL: topbottom_mul_64 -define void @topbottom_mul_64(i32 %N, i64* noalias nocapture readnone %Out, i16* nocapture readonly %In1, i16* nocapture readonly %In2) { -entry: - br label %for.body - -; CHECK: for.body: -; CHECK: [[Cast_PIn1_0:%[^ ]+]] = bitcast i16* %PIn1.0 to i32* -; CHECK: [[PIn1_01:%[^ ]+]] = load i32, i32* [[Cast_PIn1_0]], align 2 -; CHECK: [[PIn1_1:%[^ ]+]] = ashr i32 [[PIn1_01]], 16 -; CHECK: [[PIn1_01_shl:%[^ ]+]] = shl i32 [[PIn1_01]], 16 -; CHECK: [[PIn1_0:%[^ ]+]] = ashr i32 [[PIn1_01_shl]], 16 - -; CHECK: [[Cast_PIn2_0:%[^ ]+]] = bitcast i16* %PIn2.0 to i32* -; CHECK: [[PIn2_01:%[^ ]+]] = load i32, i32* [[Cast_PIn2_0]], align 2 -; CHECK: [[PIn2_1:%[^ ]+]] = ashr i32 [[PIn2_01]], 16 -; CHECK: [[PIn2_01_shl:%[^ ]+]] = shl i32 [[PIn2_01]], 16 -; CHECK: [[PIn2_0:%[^ ]+]] = ashr i32 [[PIn2_01_shl]], 16 - -; CHECK: [[Mul0:%[^ ]+]] = mul nsw i32 [[PIn1_0]], [[PIn2_0]] -; CHECK: [[SMul0:%[^ ]+]] = sext i32 [[Mul0]] to i64 -; CHECK: [[Mul1:%[^ ]+]] = mul nsw i32 [[PIn1_1]], [[PIn2_1]] -; CHECK: [[SMul1:%[^ ]+]] = sext i32 [[Mul1]] to i64 -; CHECK: add i64 [[SMul0]], [[SMul1]] - -; CHECK: [[Cast_PIn1_2:%[^ ]+]] = bitcast i16* %PIn1.2 to i32* -; CHECK: [[PIn1_23:%[^ ]+]] = load i32, i32* [[Cast_PIn1_2]], align 2 -; CHECK: [[PIn1_3:%[^ ]+]] = ashr i32 [[PIn1_23]], 16 -; CHECK: [[PIn1_23_shl:%[^ ]+]] = shl i32 [[PIn1_23]], 16 -; CHECK: [[PIn1_2:%[^ ]+]] = ashr i32 [[PIn1_23_shl]], 16 - -; CHECK: [[Cast_PIn2_2:%[^ ]+]] = bitcast i16* %PIn2.2 to i32* -; CHECK: [[PIn2_23:%[^ ]+]] = load i32, i32* [[Cast_PIn2_2]], align 2 -; CHECK: [[PIn2_3:%[^ ]+]] = ashr i32 [[PIn2_23]], 16 -; CHECK: [[PIn2_23_shl:%[^ ]+]] = shl i32 [[PIn2_23]], 16 -; CHECK: [[PIn2_2:%[^ ]+]] = ashr i32 [[PIn2_23_shl]], 16 - -; CHECK: [[Mul2:%[^ ]+]] = mul nsw i32 [[PIn1_2]], [[PIn2_2]] -; CHECK: [[SMul2:%[^ ]+]] = sext i32 [[Mul2]] to i64 -; CHECK: [[Mul3:%[^ ]+]] = mul nsw i32 [[PIn1_3]], [[PIn2_3]] -; CHECK: [[SMul3:%[^ ]+]] = sext i32 [[Mul3]] to i64 -; CHECK: add i64 [[SMul2]], [[SMul3]] - -for.body: - %iv = phi i32 [ 0, %entry ], [ %iv.next, %for.body ] - %iv.out = phi i32 [ 0, %entry] , [ %iv.out.next, %for.body ] - %count = phi i32 [ %N, %entry ], [ %count.next, %for.body ] - %PIn1.0 = getelementptr inbounds i16, i16* %In1, i32 %iv - %In1.0 = load i16, i16* %PIn1.0, align 2 - %SIn1.0 = sext i16 %In1.0 to i32 - %PIn2.0 = getelementptr inbounds i16, i16* %In2, i32 %iv - %In2.0 = load i16, i16* %PIn2.0, align 2 - %SIn2.0 = sext i16 %In2.0 to i32 - %mul5.us.i.i = mul nsw i32 %SIn1.0, %SIn2.0 - %sext.0 = sext i32 %mul5.us.i.i to i64 - %iv.1 = or i32 %iv, 1 - %PIn1.1 = getelementptr inbounds i16, i16* %In1, i32 %iv.1 - %In1.1 = load i16, i16* %PIn1.1, align 2 - %SIn1.1 = sext i16 %In1.1 to i32 - %PIn2.1 = getelementptr inbounds i16, i16* %In2, i32 %iv.1 - %In2.1 = load i16, i16* %PIn2.1, align 2 - %SIn2.1 = sext i16 %In2.1 to i32 - %mul5.us.i.1.i = mul nsw i32 %SIn1.1, %SIn2.1 - %sext.1 = sext i32 %mul5.us.i.1.i to i64 - %mac.0 = add i64 %sext.0, %sext.1 - %Out.0 = getelementptr inbounds i64, i64* %Out, i32 %iv.out - store i64 %mac.0, i64* %Out.0, align 4 - %iv.2 = or i32 %iv, 2 - %PIn1.2 = getelementptr inbounds i16, i16* %In1, i32 %iv.2 - %In1.2 = load i16, i16* %PIn1.2, align 2 - %SIn1.2 = sext i16 %In1.2 to i32 - %PIn2.2 = getelementptr inbounds i16, i16* %In2, i32 %iv.2 - %In2.2 = load i16, i16* %PIn2.2, align 2 - %SIn2.2 = sext i16 %In2.2 to i32 - %mul5.us.i.2.i = mul nsw i32 %SIn1.2, %SIn2.2 - %sext.2 = sext i32 %mul5.us.i.2.i to i64 - %iv.3 = or i32 %iv, 3 - %PIn1.3 = getelementptr inbounds i16, i16* %In1, i32 %iv.3 - %In1.3 = load i16, i16* %PIn1.3, align 2 - %SIn1.3 = sext i16 %In1.3 to i32 - %PIn2.3 = getelementptr inbounds i16, i16* %In2, i32 %iv.3 - %In2.3 = load i16, i16* %PIn2.3, align 2 - %SIn2.3 = sext i16 %In2.3 to i32 - %mul5.us.i.3.i = mul nsw i32 %SIn1.3, %SIn2.3 - %sext.3 = sext i32 %mul5.us.i.3.i to i64 - %mac.1 = add i64 %sext.2, %sext.3 - %iv.out.1 = or i32 %iv.out, 1 - %Out.1 = getelementptr inbounds i64, i64* %Out, i32 %iv.out.1 - store i64 %mac.1, i64* %Out.1, align 4 - %iv.next = add i32 %iv, 4 - %iv.out.next = add i32 %iv.out, 2 - %count.next = add i32 %count, -4 - %niter375.ncmp.3.i = icmp eq i32 %count.next, 0 - br i1 %niter375.ncmp.3.i, label %exit, label %for.body - -exit: - ret void -} diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad0.ll b/llvm/test/CodeGen/ARM/smlad0.ll index b9278b4c22b..b9278b4c22b 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad0.ll +++ b/llvm/test/CodeGen/ARM/smlad0.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad1.ll b/llvm/test/CodeGen/ARM/smlad1.ll index 60179f22374..60179f22374 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad1.ll +++ b/llvm/test/CodeGen/ARM/smlad1.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad10.ll b/llvm/test/CodeGen/ARM/smlad10.ll index 904b62a6526..904b62a6526 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad10.ll +++ b/llvm/test/CodeGen/ARM/smlad10.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad11.ll b/llvm/test/CodeGen/ARM/smlad11.ll index 04586e66930..04586e66930 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad11.ll +++ b/llvm/test/CodeGen/ARM/smlad11.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad12.ll b/llvm/test/CodeGen/ARM/smlad12.ll index d4e09ca3fbb..d4e09ca3fbb 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad12.ll +++ b/llvm/test/CodeGen/ARM/smlad12.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad2.ll b/llvm/test/CodeGen/ARM/smlad2.ll index e30527ededd..e30527ededd 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad2.ll +++ b/llvm/test/CodeGen/ARM/smlad2.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad3.ll b/llvm/test/CodeGen/ARM/smlad3.ll index 875933b609b..875933b609b 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad3.ll +++ b/llvm/test/CodeGen/ARM/smlad3.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad4.ll b/llvm/test/CodeGen/ARM/smlad4.ll index 20571e3c24a..20571e3c24a 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad4.ll +++ b/llvm/test/CodeGen/ARM/smlad4.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad5.ll b/llvm/test/CodeGen/ARM/smlad5.ll index 51a7cad2a1e..51a7cad2a1e 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad5.ll +++ b/llvm/test/CodeGen/ARM/smlad5.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad6.ll b/llvm/test/CodeGen/ARM/smlad6.ll index 421036ecfc0..421036ecfc0 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad6.ll +++ b/llvm/test/CodeGen/ARM/smlad6.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad7.ll b/llvm/test/CodeGen/ARM/smlad7.ll index 76c7d676f69..76c7d676f69 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad7.ll +++ b/llvm/test/CodeGen/ARM/smlad7.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad8.ll b/llvm/test/CodeGen/ARM/smlad8.ll index 6c35685f558..6c35685f558 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad8.ll +++ b/llvm/test/CodeGen/ARM/smlad8.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlad9.ll b/llvm/test/CodeGen/ARM/smlad9.ll index ac88adc2662..ac88adc2662 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlad9.ll +++ b/llvm/test/CodeGen/ARM/smlad9.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smladx-1.ll b/llvm/test/CodeGen/ARM/smladx-1.ll index d5e9a0622ca..d5e9a0622ca 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smladx-1.ll +++ b/llvm/test/CodeGen/ARM/smladx-1.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlald0.ll b/llvm/test/CodeGen/ARM/smlald0.ll index 6d98c227cfe..6d98c227cfe 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlald0.ll +++ b/llvm/test/CodeGen/ARM/smlald0.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlald1.ll b/llvm/test/CodeGen/ARM/smlald1.ll index 61435e97674..61435e97674 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlald1.ll +++ b/llvm/test/CodeGen/ARM/smlald1.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlald2.ll b/llvm/test/CodeGen/ARM/smlald2.ll index bf70489f979..bf70489f979 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlald2.ll +++ b/llvm/test/CodeGen/ARM/smlald2.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-1.ll b/llvm/test/CodeGen/ARM/smlaldx-1.ll index e615f209f57..e615f209f57 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-1.ll +++ b/llvm/test/CodeGen/ARM/smlaldx-1.ll diff --git a/llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-2.ll b/llvm/test/CodeGen/ARM/smlaldx-2.ll index a4b5a272dc6..a4b5a272dc6 100644 --- a/llvm/test/CodeGen/ARM/ParallelDSP/smlaldx-2.ll +++ b/llvm/test/CodeGen/ARM/smlaldx-2.ll |

